2 lines
302 KiB
JavaScript
2 lines
302 KiB
JavaScript
/*! For license information please see zap.js.LICENSE.txt */
|
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.zap=t():e.zap=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=15)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var i=n(10),a=n.n(i),o=n(11),r=a.a.loadJson(o).build().com.zhihu.za.proto,l=r.$options["(current_log_version)"];t.a=r},function(e,t,n){var i,a,o,r,l,d,s,m,p,u,f,y,c,h,g;o=function(e,t,n){if(!p(t)||f(t)||y(t)||c(t)||m(t))return t;var i,a=0,r=0;if(u(t))for(i=[],r=t.length;a<r;a++)i.push(o(e,t[a],n));else for(var l in i={},t)Object.prototype.hasOwnProperty.call(t,l)&&(i[e(l,n)]=o(e,t[l],n));return i},r=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},l=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},d=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",i=t.split||/(?=[A-Z])/;return e.split(i).join(n)}(e,t).toLowerCase()},s=Object.prototype.toString,m=function(e){return"function"==typeof e},p=function(e){return e===Object(e)},u=function(e){return"[object Array]"==s.call(e)},f=function(e){return"[object Date]"==s.call(e)},y=function(e){return"[object RegExp]"==s.call(e)},c=function(e){return"[object Boolean]"==s.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,i){return n(t,e,i)}},void 0===(a="function"==typeof(i={camelize:r,decamelize:d,pascalize:l,depascalize:d,camelizeKeys:function(e,t){return o(g(r,t),e)},decamelizeKeys:function(e,t){return o(g(d,t),e,t)},pascalizeKeys:function(e,t){return o(g(l,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)a(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,i,a){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),a);else for(var o=0;o<i;o++)e[a+o]=t[n+o]},flattenChunks:function(e){var t,n,i,a,o,r;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(r=new Uint8Array(i),a=0,t=0,n=e.length;t<n;t++)o=e[t],r.set(o,a),a+=o.length;return r}},r={arraySet:function(e,t,n,i,a){for(var o=0;o<i;o++)e[a+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,r))},t.setTyped(i)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var i=n(12),a=n(0),o=n(13),r=a.a.ZaLogBatchEntry,l={apiHost:"",compress:!0};var d=function(t){return e.webkit&&webkit.messageHandlers&&webkit.messageHandlers.trackZA?(webkit.messageHandlers.trackZA.postMessage(t.toBase64()),!0):e.ZhihuAndroidBridge&&ZhihuAndroidBridge.trackZA?(ZhihuAndroidBridge.trackZA(t.toBase64()),!0):!(!e.ZhihuNativeApp||!ZhihuNativeApp.trackZA)&&(ZhihuNativeApp.trackZA(t.toBase64()),!0)},s=function(e,t,n,d){(function(e,t,n){if(!Array.isArray(t)||!t.length)throw new Error("logEntries cannot be null or empty.");if(!(n=Object.assign({},l,n)).apiHost)throw new Error("apiHost not found.");var d=""+n.apiHost+e,s={"X-ZA-Log-Version":a.b,"Content-Type":"application/x-protobuf"},m=t[0].toRaw(),p="Proto3"===m.log_type?m.za_log_entry_new.base:m.base;p&&p.client&&(s["X-ZA-Product"]=p.client.product,s["X-ZA-Platform"]=p.client.platform),p&&p.id&&p.id.client_id&&(s["X-ZA-ClientID"]=p.id.client_id),t.length&&(s["X-ZA-Batch-Size"]=t.length);var u,f=new r(t).toArrayBuffer();n.compress?(s["Content-Encoding"]="gzip",u=Object(i.gzip)(f).buffer):u=f;var y=new o.a({method:"POST",url:d,headers:s});return y.send(new DataView(u)),y})(e,t,d).onSuccess(n)}}).call(this,n(3))},function(e,t){},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t){e.exports=function(e,t){var n,i,a,o,r=0;return function(){n=this,i=arguments;var e=new Date-r;return o||(e>=t?l():o=setTimeout(l,t-e)),a};function l(){o=0,r=+new Date,a=e.apply(n,i),n=null,i=null}}},function(e,t,n){var i=n(17)("cookie");function a(e,t,n){n=n||{};var i=l(e)+"="+l(t);null==t&&(n.maxage=-1),n.maxage&&(n.expires=new Date(+new Date+n.maxage)),n.path&&(i+="; path="+n.path),n.domain&&(i+="; domain="+n.domain),n.expires&&(i+="; expires="+n.expires.toUTCString()),n.secure&&(i+="; secure"),document.cookie=i}function o(){var e;try{e=document.cookie}catch(e){return"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e.stack||e),{}}return function(e){var t,n={},i=e.split(/ *; */);if(""==i[0])return n;for(var a=0;a<i.length;++a)n[d((t=i[a].split("="))[0])]=d(t[1]);return n}(e)}function r(e){return o()[e]}function l(e){try{return encodeURIComponent(e)}catch(t){i("error `encode(%o)` - %o",e,t)}}function d(e){try{return decodeURIComponent(e)}catch(t){i("error `decode(%o)` - %o",e,t)}}e.exports=function(e,t,n){switch(arguments.length){case 3:case 2:return a(e,t,n);case 1:return r(e);default:return o()}}},function(e,t,n){for(var i=n(18),a=[],o={},r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1),o[a[r]]=r;function l(e,t){var n=t||0,i=a;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}var d=i(),s=[1|d[0],d[1],d[2],d[3],d[4],d[5]],m=16383&(d[6]<<8|d[7]),p=0,u=0;function f(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var r=0;r<16;r++)t[a+r]=o[r];return t||l(o)}var y=f;y.v1=function(e,t,n){var i=t&&n||0,a=t||[],o=void 0!==(e=e||{}).clockseq?e.clockseq:m,r=void 0!==e.msecs?e.msecs:(new Date).getTime(),d=void 0!==e.nsecs?e.nsecs:u+1,f=r-p+(d-u)/1e4;if(f<0&&void 0===e.clockseq&&(o=o+1&16383),(f<0||r>p)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=r,u=d,m=o;var y=(1e4*(268435455&(r+=122192928e5))+d)%4294967296;a[i++]=y>>>24&255,a[i++]=y>>>16&255,a[i++]=y>>>8&255,a[i++]=255&y;var c=r/4294967296*1e4&268435455;a[i++]=c>>>8&255,a[i++]=255&c,a[i++]=c>>>24&15|16,a[i++]=c>>>16&255,a[i++]=o>>>8|128,a[i++]=255&o;for(var h=e.node||s,g=0;g<6;g++)a[i+g]=h[g];return t||l(a)},y.v4=f,y.parse=function(e,t,n){var i=t&&n||0,a=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){a<16&&(t[i+a++]=o[e])}));a<16;)t[i+a++]=0;return t},y.unparse=l,e.exports=y},function(e,t,n){(function(i){var a,o,r;o=[n(20)],void 0===(r="function"==typeof(a=function(e,t){"use strict";var a,o={};return o.ByteBuffer=e,o.Long=e.Long||null,o.VERSION="5.0.1",o.WIRE_TYPES={},o.WIRE_TYPES.VARINT=0,o.WIRE_TYPES.BITS64=1,o.WIRE_TYPES.LDELIM=2,o.WIRE_TYPES.STARTGROUP=3,o.WIRE_TYPES.ENDGROUP=4,o.WIRE_TYPES.BITS32=5,o.PACKABLE_WIRE_TYPES=[o.WIRE_TYPES.VARINT,o.WIRE_TYPES.BITS64,o.WIRE_TYPES.BITS32],o.TYPES={int32:{name:"int32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},uint64:{name:"uint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.UZERO:void 0},sint64:{name:"sint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},bool:{name:"bool",wireType:o.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:o.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:o.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.ZERO:void 0},float:{name:"float",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:o.WIRE_TYPES.STARTGROUP,defaultValue:null}},o.MAP_KEY_TYPES=[o.TYPES.int32,o.TYPES.sint32,o.TYPES.sfixed32,o.TYPES.uint32,o.TYPES.fixed32,o.TYPES.int64,o.TYPES.sint64,o.TYPES.sfixed64,o.TYPES.uint64,o.TYPES.fixed64,o.TYPES.bool,o.TYPES.string,o.TYPES.bytes],o.ID_MIN=1,o.ID_MAX=536870911,o.convertFieldsToCamelCase=!1,o.populateAccessors=!0,o.populateDefaults=!0,o.Util=((a={}).IS_NODE=!("object"!=typeof i||i+""!="[object process]"||i.browser),a.XHR=function(){for(var e=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],t=null,n=0;n<e.length;n++){try{t=e[n]()}catch(e){continue}break}if(!t)throw Error("XMLHttpRequest is not supported");return t},a.fetch=function(e,t){if(t&&"function"!=typeof t&&(t=null),a.IS_NODE){var i=n(22);if(t)i.readFile(e,(function(e,n){t(e?null:""+n)}));else try{return i.readFileSync(e)}catch(e){return null}}else{var o=a.XHR();if(o.open("GET",e,!!t),o.setRequestHeader("Accept","text/plain"),"function"==typeof o.overrideMimeType&&o.overrideMimeType("text/plain"),!t)return o.send(null),200==o.status||0==o.status&&"string"==typeof o.responseText?o.responseText:null;if(o.onreadystatechange=function(){4==o.readyState&&(200==o.status||0==o.status&&"string"==typeof o.responseText?t(o.responseText):t(null))},4==o.readyState)return;o.send(null)}},a.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},a),o.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},o.Reflect=function(t){var n={},i=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},a=i.prototype;a.fqn=function(){for(var e=this.name,t=this;null!=(t=t.parent);)e=t.name+"."+e;return e},a.toString=function(e){return(e?this.className+" ":"")+this.fqn()},a.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},n.T=i;var o=function(e,t,n,a,o){i.call(this,e,t,n),this.className="Namespace",this.children=[],this.options=a||{},this.syntax=o||"proto2"},r=o.prototype=Object.create(i.prototype);r.getChildren=function(e){if(null==(e=e||null))return this.children.slice();for(var t=[],n=0,i=this.children.length;n<i;++n)this.children[n]instanceof e&&t.push(this.children[n]);return t},r.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof p.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof p.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},r.getChild=function(e){for(var t="number"==typeof e?"id":"name",n=0,i=this.children.length;n<i;++n)if(this.children[n][t]===e)return this.children[n];return null},r.resolve=function(e,t){var i,a="string"==typeof e?e.split("."):e,o=this,r=0;if(""===a[r]){for(;null!==o.parent;)o=o.parent;r++}do{do{if(!(o instanceof n.Namespace)){o=null;break}if(!(i=o.getChild(a[r]))||!(i instanceof n.T)||t&&!(i instanceof n.Namespace)){o=null;break}o=i,r++}while(r<a.length);if(null!=o)break;if(null!==this.parent)return this.parent.resolve(e,t)}while(null!=o);return o},r.qn=function(e){var t=[],i=e;do{t.unshift(i.name),i=i.parent}while(null!==i);for(var a=1;a<=t.length;a++){var o=t.slice(t.length-a);if(e===this.resolve(o,e instanceof n.Namespace))return o.join(".")}return e.fqn()},r.build=function(){for(var e,t={},n=this.children,i=0,a=n.length;i<a;++i)(e=n[i])instanceof o&&(t[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(t,"$options",{value:this.buildOpt()}),t},r.buildOpt=function(){for(var e={},t=Object.keys(this.options),n=0,i=t.length;n<i;++n){var a=t[n],o=this.options[t[n]];e[a]=o}return e},r.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},n.Namespace=o;var l=function(e,n,i,a){if(this.type=e,this.resolvedType=n,this.isMapKey=i,this.syntax=a,i&&t.MAP_KEY_TYPES.indexOf(e)<0)throw Error("Invalid map key type: "+e.name)},d=l.prototype;function s(n){if("string"==typeof n&&(n=t.TYPES[n]),void 0===n.defaultValue)throw Error("default value for type "+n.name+" is not supported");return n==t.TYPES.bytes?new e(0):n.defaultValue}function m(e,n){if(e&&"number"==typeof e.low&&"number"==typeof e.high&&"boolean"==typeof e.unsigned&&e.low==e.low&&e.high==e.high)return new t.Long(e.low,e.high,void 0===n?e.unsigned:n);if("string"==typeof e)return t.Long.fromString(e,n||!1,10);if("number"==typeof e)return t.Long.fromNumber(e,n||!1);throw Error("not convertible to Long")}l.defaultFieldValue=s,d.verifyValue=function(n){var i=this;function a(e,t){throw Error("Illegal value for "+i.toString(!0)+" of type "+i.type.name+": "+e+" ("+t+")")}switch(this.type){case t.TYPES.int32:case t.TYPES.sint32:case t.TYPES.sfixed32:return("number"!=typeof n||n==n&&n%1!=0)&&a(typeof n,"not an integer"),n>4294967295?0|n:n;case t.TYPES.uint32:case t.TYPES.fixed32:return("number"!=typeof n||n==n&&n%1!=0)&&a(typeof n,"not an integer"),n<0?n>>>0:n;case t.TYPES.int64:case t.TYPES.sint64:case t.TYPES.sfixed64:if(t.Long)try{return m(n,!1)}catch(e){a(typeof n,e.message)}else a(typeof n,"requires Long.js");case t.TYPES.uint64:case t.TYPES.fixed64:if(t.Long)try{return m(n,!0)}catch(e){a(typeof n,e.message)}else a(typeof n,"requires Long.js");case t.TYPES.bool:return"boolean"!=typeof n&&a(typeof n,"not a boolean"),n;case t.TYPES.float:case t.TYPES.double:return"number"!=typeof n&&a(typeof n,"not a number"),n;case t.TYPES.string:return"string"==typeof n||n&&n instanceof String||a(typeof n,"not a string"),""+n;case t.TYPES.bytes:return e.isByteBuffer(n)?n:e.wrap(n,"base64");case t.TYPES.enum:var o=this.resolvedType.getChildren(t.Reflect.Enum.Value);for(l=0;l<o.length;l++){if(o[l].name==n)return o[l].id;if(o[l].id==n)return o[l].id}if("proto3"===this.syntax)return("number"!=typeof n||n==n&&n%1!=0)&&a(typeof n,"not an integer"),(n>4294967295||n<0)&&a(typeof n,"not in range for uint32"),n;a(n,"not a valid enum value");case t.TYPES.group:case t.TYPES.message:if(n&&"object"==typeof n||a(typeof n,"object expected"),n instanceof this.resolvedType.clazz)return n;if(n instanceof t.Builder.Message){var r={};for(var l in n)n.hasOwnProperty(l)&&(r[l]=n[l]);n=r}return new this.resolvedType.clazz(n)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+n+" (undefined type "+this.type+")")},d.calculateLength=function(n,i){if(null===i)return 0;var a;switch(this.type){case t.TYPES.int32:return i<0?e.calculateVarint64(i):e.calculateVarint32(i);case t.TYPES.uint32:return e.calculateVarint32(i);case t.TYPES.sint32:return e.calculateVarint32(e.zigZagEncode32(i));case t.TYPES.fixed32:case t.TYPES.sfixed32:case t.TYPES.float:return 4;case t.TYPES.int64:case t.TYPES.uint64:return e.calculateVarint64(i);case t.TYPES.sint64:return e.calculateVarint64(e.zigZagEncode64(i));case t.TYPES.fixed64:case t.TYPES.sfixed64:return 8;case t.TYPES.bool:return 1;case t.TYPES.enum:return e.calculateVarint32(i);case t.TYPES.double:return 8;case t.TYPES.string:return a=e.calculateUTF8Bytes(i),e.calculateVarint32(a)+a;case t.TYPES.bytes:if(i.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+i.remaining()+" bytes remaining");return e.calculateVarint32(i.remaining())+i.remaining();case t.TYPES.message:return a=this.resolvedType.calculate(i),e.calculateVarint32(a)+a;case t.TYPES.group:return(a=this.resolvedType.calculate(i))+e.calculateVarint32(n<<3|t.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+i+" (unknown type)")},d.encodeValue=function(n,i,a){if(null===i)return a;switch(this.type){case t.TYPES.int32:i<0?a.writeVarint64(i):a.writeVarint32(i);break;case t.TYPES.uint32:a.writeVarint32(i);break;case t.TYPES.sint32:a.writeVarint32ZigZag(i);break;case t.TYPES.fixed32:a.writeUint32(i);break;case t.TYPES.sfixed32:a.writeInt32(i);break;case t.TYPES.int64:case t.TYPES.uint64:a.writeVarint64(i);break;case t.TYPES.sint64:a.writeVarint64ZigZag(i);break;case t.TYPES.fixed64:a.writeUint64(i);break;case t.TYPES.sfixed64:a.writeInt64(i);break;case t.TYPES.bool:"string"==typeof i?a.writeVarint32("false"===i.toLowerCase()?0:!!i):a.writeVarint32(i?1:0);break;case t.TYPES.enum:a.writeVarint32(i);break;case t.TYPES.float:a.writeFloat32(i);break;case t.TYPES.double:a.writeFloat64(i);break;case t.TYPES.string:a.writeVString(i);break;case t.TYPES.bytes:if(i.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+i.remaining()+" bytes remaining");var o=i.offset;a.writeVarint32(i.remaining()),a.append(i),i.offset=o;break;case t.TYPES.message:var r=(new e).LE();this.resolvedType.encode(i,r),a.writeVarint32(r.offset),a.append(r.flip());break;case t.TYPES.group:this.resolvedType.encode(i,a),a.writeVarint32(n<<3|t.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+i+" (unknown type)")}return a},d.decode=function(e,n,i){if(n!=this.type.wireType)throw Error("Unexpected wire type for element");var a,o;switch(this.type){case t.TYPES.int32:return 0|e.readVarint32();case t.TYPES.uint32:return e.readVarint32()>>>0;case t.TYPES.sint32:return 0|e.readVarint32ZigZag();case t.TYPES.fixed32:return e.readUint32()>>>0;case t.TYPES.sfixed32:return 0|e.readInt32();case t.TYPES.int64:return e.readVarint64();case t.TYPES.uint64:return e.readVarint64().toUnsigned();case t.TYPES.sint64:return e.readVarint64ZigZag();case t.TYPES.fixed64:return e.readUint64();case t.TYPES.sfixed64:return e.readInt64();case t.TYPES.bool:return!!e.readVarint32();case t.TYPES.enum:return e.readVarint32();case t.TYPES.float:return e.readFloat();case t.TYPES.double:return e.readDouble();case t.TYPES.string:return e.readVString();case t.TYPES.bytes:if(o=e.readVarint32(),e.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+e.remaining());return(a=e.clone()).limit=a.offset+o,e.offset+=o,a;case t.TYPES.message:return o=e.readVarint32(),this.resolvedType.decode(e,o);case t.TYPES.group:return this.resolvedType.decode(e,-1,i)}throw Error("[INTERNAL] Illegal decode type")},d.valueFromString=function(n){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case t.TYPES.int32:case t.TYPES.sint32:case t.TYPES.sfixed32:case t.TYPES.uint32:case t.TYPES.fixed32:return this.verifyValue(parseInt(n));case t.TYPES.int64:case t.TYPES.sint64:case t.TYPES.sfixed64:case t.TYPES.uint64:case t.TYPES.fixed64:return this.verifyValue(n);case t.TYPES.bool:return"true"===n;case t.TYPES.string:return this.verifyValue(n);case t.TYPES.bytes:return e.fromBinary(n)}},d.valueToString=function(e){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===t.TYPES.bytes?e.toString("binary"):e.toString()},n.Element=l;var p=function(e,t,n,i,a,r){o.call(this,e,t,n,i,r),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!a,this._fields=null,this._fieldsById=null,this._fieldsByName=null},u=p.prototype=Object.create(o.prototype);function f(e,n){var i=n.readVarint32(),a=7&i,o=i>>>3;switch(a){case t.WIRE_TYPES.VARINT:do{i=n.readUint8()}while(128==(128&i));break;case t.WIRE_TYPES.BITS64:n.offset+=8;break;case t.WIRE_TYPES.LDELIM:i=n.readVarint32(),n.offset+=i;break;case t.WIRE_TYPES.STARTGROUP:f(o,n);break;case t.WIRE_TYPES.ENDGROUP:if(o===e)return!1;throw Error("Illegal GROUPEND after unknown group: "+o+" ("+e+" expected)");case t.WIRE_TYPES.BITS32:n.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+e+": "+a)}return!0}u.build=function(n){if(this.clazz&&!n)return this.clazz;var i=function(t,n){var i=n.getChildren(t.Reflect.Message.Field),a=n.getChildren(t.Reflect.Message.OneOf),o=function(r,l){t.Builder.Message.call(this);for(var d=0,s=a.length;d<s;++d)this[a[d].name]=null;for(d=0,s=i.length;d<s;++d){var m=i[d];this[m.name]=m.repeated?[]:m.map?new t.Map(m):null,!m.required&&"proto3"!==n.syntax||null===m.defaultValue||(this[m.name]=m.defaultValue)}var p;if(arguments.length>0)if(1!==arguments.length||null===r||"object"!=typeof r||!("function"!=typeof r.encode||r instanceof o)||Array.isArray(r)||r instanceof t.Map||e.isByteBuffer(r)||r instanceof ArrayBuffer||t.Long&&r instanceof t.Long)for(d=0,s=arguments.length;d<s;++d)void 0!==(p=arguments[d])&&this.$set(i[d].name,p);else this.$set(r)},r=o.prototype=Object.create(t.Builder.Message.prototype);r.add=function(e,i,a){var o=n._fieldsByName[e];if(!a){if(!o)throw Error(this+"#"+e+" is undefined");if(!(o instanceof t.Reflect.Message.Field))throw Error(this+"#"+e+" is not a field: "+o.toString(!0));if(!o.repeated)throw Error(this+"#"+e+" is not a repeated field");i=o.verifyValue(i,!0)}return null===this[e]&&(this[e]=[]),this[e].push(i),this},r.$add=r.add,r.set=function(e,i,a){if(e&&"object"==typeof e){for(var o in a=i,e)e.hasOwnProperty(o)&&void 0!==(i=e[o])&&this.$set(o,i,a);return this}var r=n._fieldsByName[e];if(a)this[e]=i;else{if(!r)throw Error(this+"#"+e+" is not a field: undefined");if(!(r instanceof t.Reflect.Message.Field))throw Error(this+"#"+e+" is not a field: "+r.toString(!0));this[r.name]=i=r.verifyValue(i)}if(r&&r.oneof){var l=this[r.oneof.name];null!==i?(null!==l&&l!==r.name&&(this[l]=null),this[r.oneof.name]=r.name):l===e&&(this[r.oneof.name]=null)}return this},r.$set=r.set,r.get=function(e,i){if(i)return this[e];var a=n._fieldsByName[e];if(!(a&&a instanceof t.Reflect.Message.Field))throw Error(this+"#"+e+" is not a field: undefined");if(!(a instanceof t.Reflect.Message.Field))throw Error(this+"#"+e+" is not a field: "+a.toString(!0));return this[a.name]},r.$get=r.get;for(var l=0;l<i.length;l++){var d=i[l];d instanceof t.Reflect.Message.ExtensionField||n.builder.options.populateAccessors&&function(e){var t=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));t=t.substring(0,1).toUpperCase()+t.substring(1);var i=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),a=function(t,n){return this[e.name]=n?t:e.verifyValue(t),this},o=function(){return this[e.name]};null===n.getChild("set"+t)&&(r["set"+t]=a),null===n.getChild("set_"+i)&&(r["set_"+i]=a),null===n.getChild("get"+t)&&(r["get"+t]=o),null===n.getChild("get_"+i)&&(r["get_"+i]=o)}(d)}function s(n,i,a,o){if(null===n||"object"!=typeof n){if(o&&o instanceof t.Reflect.Enum){var r=t.Reflect.Enum.getName(o.object,n);if(null!==r)return r}return n}if(e.isByteBuffer(n))return i?n.toBase64():n.toBuffer();if(t.Long.isLong(n))return a?n.toString():t.Long.fromValue(n);var l;if(Array.isArray(n))return l=[],n.forEach((function(e,t){l[t]=s(e,i,a,o)})),l;if(l={},n instanceof t.Map){for(var d=n.entries(),m=d.next();!m.done;m=d.next())l[n.keyElem.valueToString(m.value[0])]=s(m.value[1],i,a,n.valueElem.resolvedType);return l}var p=n.$type,u=void 0;for(var f in n)n.hasOwnProperty(f)&&(p&&(u=p.getChild(f))?l[f]=s(n[f],i,a,u.resolvedType):l[f]=s(n[f],i,a));return l}return r.encode=function(t,i){"boolean"==typeof t&&(i=t,t=void 0);var a=!1;t||(t=new e,a=!0);var o=t.littleEndian;try{return n.encode(this,t.LE(),i),(a?t.flip():t).LE(o)}catch(e){throw t.LE(o),e}},o.encode=function(e,t,n){return new o(e).encode(t,n)},r.calculate=function(){return n.calculate(this)},r.encodeDelimited=function(t,i){var a=!1;t||(t=new e,a=!0);var o=(new e).LE();return n.encode(this,o,i).flip(),t.writeVarint32(o.remaining()),t.append(o),a?t.flip():t},r.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toArrayBuffer()),e}},r.toArrayBuffer=r.encodeAB,r.encodeNB=function(){try{return this.encode().toBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBuffer()),e}},r.toBuffer=r.encodeNB,r.encode64=function(){try{return this.encode().toBase64()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBase64()),e}},r.toBase64=r.encode64,r.encodeHex=function(){try{return this.encode().toHex()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toHex()),e}},r.toHex=r.encodeHex,r.toRaw=function(e,t){return s(this,!!e,!!t,this.$type)},r.encodeJSON=function(){return JSON.stringify(s(this,!0,!0,this.$type))},o.decode=function(t,i,a){"string"==typeof i&&(a=i,i=-1),"string"==typeof t&&(t=e.wrap(t,a||"base64"));var o=(t=e.isByteBuffer(t)?t:e.wrap(t)).littleEndian;try{var r=n.decode(t.LE());return t.LE(o),r}catch(e){throw t.LE(o),e}},o.decodeDelimited=function(t,i){if("string"==typeof t&&(t=e.wrap(t,i||"base64")),(t=e.isByteBuffer(t)?t:e.wrap(t)).remaining()<1)return null;var a=t.offset,o=t.readVarint32();if(t.remaining()<o)return t.offset=a,null;try{var r=n.decode(t.slice(t.offset,t.offset+o).LE());return t.offset+=o,r}catch(e){throw t.offset+=o,e}},o.decode64=function(e){return o.decode(e,"base64")},o.decodeHex=function(e){return o.decode(e,"hex")},o.decodeJSON=function(e){return new o(JSON.parse(e))},r.toString=function(){return n.toString()},Object.defineProperty&&(Object.defineProperty(o,"$options",{value:n.buildOpt()}),Object.defineProperty(r,"$options",{value:o.$options}),Object.defineProperty(o,"$type",{value:n}),Object.defineProperty(r,"$type",{value:n})),o}(t,this);this._fields=[],this._fieldsById={},this._fieldsByName={};for(var a,o=0,r=this.children.length;o<r;o++)if((a=this.children[o])instanceof _||a instanceof p||a instanceof w){if(i.hasOwnProperty(a.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+a.toString(!0)+" cannot override static property '"+a.name+"'");i[a.name]=a.build()}else if(a instanceof p.Field)a.build(),this._fields.push(a),this._fieldsById[a.id]=a,this._fieldsByName[a.name]=a;else if(!(a instanceof p.OneOf||a instanceof b))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[o].toString(!0));return this.clazz=i},u.encode=function(e,t,n){for(var i,a,o=null,r=0,l=this._fields.length;r<l;++r)a=e[(i=this._fields[r]).name],i.required&&null===a?null===o&&(o=i):i.encode(n?a:i.verifyValue(a),t,e);if(null!==o){var d=Error("Missing at least one required field for "+this.toString(!0)+": "+o);throw d.encoded=t,d}return t},u.calculate=function(e){for(var t,n,i=0,a=0,o=this._fields.length;a<o;++a){if(n=e[(t=this._fields[a]).name],t.required&&null===n)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);i+=t.calculate(n,e)}return i},u.decode=function(e,n,i){n="number"==typeof n?n:-1;for(var a,o,r,l,d=e.offset,s=new this.clazz;e.offset<d+n||-1===n&&e.remaining()>0;){if(r=(a=e.readVarint32())>>>3,(o=7&a)===t.WIRE_TYPES.ENDGROUP){if(r!==i)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+r+" ("+(i?i+" expected":"not a group")+")");break}if(l=this._fieldsById[r]){if(l.repeated&&!l.options.packed)s[l.name].push(l.decode(o,e));else if(l.map){var m=l.decode(o,e);s[l.name].set(m[0],m[1])}else if(s[l.name]=l.decode(o,e),l.oneof){var p=s[l.oneof.name];null!==p&&p!==l.name&&(s[p]=null),s[l.oneof.name]=l.name}}else switch(o){case t.WIRE_TYPES.VARINT:e.readVarint32();break;case t.WIRE_TYPES.BITS32:e.offset+=4;break;case t.WIRE_TYPES.BITS64:e.offset+=8;break;case t.WIRE_TYPES.LDELIM:var u=e.readVarint32();e.offset+=u;break;case t.WIRE_TYPES.STARTGROUP:for(;f(r,e););break;default:throw Error("Illegal wire type for unknown field "+r+" in "+this.toString(!0)+"#decode: "+o)}}for(var y=0,c=this._fields.length;y<c;++y)if(null===s[(l=this._fields[y]).name])if("proto3"===this.syntax)s[l.name]=l.defaultValue;else{if(l.required){var h=Error("Missing at least one required field for "+this.toString(!0)+": "+l.name);throw h.decoded=s,h}t.populateDefaults&&null!==l.defaultValue&&(s[l.name]=l.defaultValue)}return s},n.Message=p;var y=function(e,n,a,o,r,l,d,s,m,u){i.call(this,e,n,l),this.className="Message.Field",this.required="required"===a,this.repeated="repeated"===a,this.map="map"===a,this.keyType=o||null,this.type=r,this.resolvedType=null,this.id=d,this.options=s||{},this.defaultValue=null,this.oneof=m||null,this.syntax=u||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof p.ExtensionField||(this.name=t.Util.toCamelCase(this.name))},c=y.prototype=Object.create(i.prototype);c.build=function(){this.element=new l(this.type,this.resolvedType,!1,this.syntax),this.map&&(this.keyElement=new l(this.keyType,void 0,!0,this.syntax)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=l.defaultFieldValue(this.type)},c.verifyValue=function(e,n){n=n||!1;var i,a=this;function o(e,t){throw Error("Illegal value for "+a.toString(!0)+" of type "+a.type.name+": "+e+" ("+t+")")}if(null===e)return this.required&&o(typeof e,"required"),"proto3"===this.syntax&&this.type!==t.TYPES.message&&o(typeof e,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!n){Array.isArray(e)||(e=[e]);var r=[];for(i=0;i<e.length;i++)r.push(this.element.verifyValue(e[i]));return r}return this.map&&!n?e instanceof t.Map?e:(e instanceof Object||o(typeof e,"expected ProtoBuf.Map or raw object for map field"),new t.Map(this,e)):(!this.repeated&&Array.isArray(e)&&o(typeof e,"no array expected"),this.element.verifyValue(e))},c.hasWirePresence=function(e,n){if("proto3"!==this.syntax)return null!==e;if(this.oneof&&n[this.oneof.name]===this.name)return!0;switch(this.type){case t.TYPES.int32:case t.TYPES.sint32:case t.TYPES.sfixed32:case t.TYPES.uint32:case t.TYPES.fixed32:return 0!==e;case t.TYPES.int64:case t.TYPES.sint64:case t.TYPES.sfixed64:case t.TYPES.uint64:case t.TYPES.fixed64:return 0!==e.low||0!==e.high;case t.TYPES.bool:return e;case t.TYPES.float:case t.TYPES.double:return 0!==e;case t.TYPES.string:return e.length>0;case t.TYPES.bytes:return e.remaining()>0;case t.TYPES.enum:return 0!==e;case t.TYPES.message:return null!==e;default:return!0}},c.encode=function(n,i,a){if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===n||this.repeated&&0==n.length)return i;try{var o;if(this.repeated)if(this.options.packed&&t.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){i.writeVarint32(this.id<<3|t.WIRE_TYPES.LDELIM),i.ensureCapacity(i.offset+=1);var r=i.offset;for(o=0;o<n.length;o++)this.element.encodeValue(this.id,n[o],i);var l=i.offset-r,d=e.calculateVarint32(l);if(d>1){var s=i.slice(r,i.offset);r+=d-1,i.offset=r,i.append(s)}i.writeVarint32(l,r-d)}else for(o=0;o<n.length;o++)i.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,n[o],i);else this.map?n.forEach((function(n,a,o){var r=e.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,a)+e.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,n);i.writeVarint32(this.id<<3|t.WIRE_TYPES.LDELIM),i.writeVarint32(r),i.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,a,i),i.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,n,i)}),this):this.hasWirePresence(n,a)&&(i.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,n,i))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+n+" ("+e+")")}return i},c.calculate=function(n,i){if(n=this.verifyValue(n),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===n||this.repeated&&0==n.length)return 0;var a=0;try{var o,r;if(this.repeated)if(this.options.packed&&t.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(a+=e.calculateVarint32(this.id<<3|t.WIRE_TYPES.LDELIM),r=0,o=0;o<n.length;o++)r+=this.element.calculateLength(this.id,n[o]);a+=e.calculateVarint32(r),a+=r}else for(o=0;o<n.length;o++)a+=e.calculateVarint32(this.id<<3|this.type.wireType),a+=this.element.calculateLength(this.id,n[o]);else this.map?n.forEach((function(n,i,o){var r=e.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,i)+e.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,n);a+=e.calculateVarint32(this.id<<3|t.WIRE_TYPES.LDELIM),a+=e.calculateVarint32(r),a+=r}),this):this.hasWirePresence(n,i)&&(a+=e.calculateVarint32(this.id<<3|this.type.wireType),a+=this.element.calculateLength(this.id,n))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+n+" ("+e+")")}return a},c.decode=function(e,n,i){var a,o;if(!(!this.map&&e==this.type.wireType||!i&&this.repeated&&this.options.packed&&e==t.WIRE_TYPES.LDELIM||this.map&&e==t.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+e+" ("+this.type.wireType+" expected)");if(e==t.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&t.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!i){o=n.readVarint32(),o=n.offset+o;for(var r=[];n.offset<o;)r.push(this.decode(this.type.wireType,n,!0));return r}if(this.map){var d=l.defaultFieldValue(this.keyType);if(a=l.defaultFieldValue(this.type),o=n.readVarint32(),n.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+n.remaining());var s=n.clone();for(s.limit=s.offset+o,n.offset+=o;s.remaining()>0;){var m=s.readVarint32();e=7&m;var p=m>>>3;if(1===p)d=this.keyElement.decode(s,e,p);else{if(2!==p)throw Error("Unexpected tag in map field key/value submessage");a=this.element.decode(s,e,p)}}return[d,a]}return this.element.decode(n,e,this.id)},n.Message.Field=y;var h=function(e,t,n,i,a,o,r){y.call(this,e,t,n,null,i,a,o,r),this.extension};h.prototype=Object.create(y.prototype),n.Message.ExtensionField=h;var g=function(e,t,n){i.call(this,e,t,n),this.fields=[]};n.Message.OneOf=g;var _=function(e,t,n,i,a){o.call(this,e,t,n,i,a),this.className="Enum",this.object=null};_.getName=function(e,t){for(var n,i=Object.keys(e),a=0;a<i.length;++a)if(e[n=i[a]]===t)return n;return null},(_.prototype=Object.create(o.prototype)).build=function(e){if(this.object&&!e)return this.object;for(var n=new t.Builder.Enum,i=this.getChildren(_.Value),a=0,o=i.length;a<o;++a)n[i[a].name]=i[a].id;return Object.defineProperty&&Object.defineProperty(n,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=n},n.Enum=_;var v=function(e,t,n,a){i.call(this,e,t,n),this.className="Enum.Value",this.id=a};v.prototype=Object.create(i.prototype),n.Enum.Value=v;var b=function(e,t,n,a){i.call(this,e,t,n),this.field=a};b.prototype=Object.create(i.prototype),n.Extension=b;var w=function(e,t,n,i){o.call(this,e,t,n,i),this.className="Service",this.clazz=null};(w.prototype=Object.create(o.prototype)).build=function(n){return this.clazz&&!n?this.clazz:this.clazz=function(t,n){for(var i=function(e){t.Builder.Service.call(this),this.rpcImpl=e||function(e,t,n){setTimeout(n.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},a=i.prototype=Object.create(t.Builder.Service.prototype),o=n.getChildren(t.Reflect.Service.RPCMethod),r=0;r<o.length;r++)!function(t){a[t.name]=function(i,a){try{try{i=t.resolvedRequestType.clazz.decode(e.wrap(i))}catch(e){if(!(e instanceof TypeError))throw e}if(null===i||"object"!=typeof i)throw Error("Illegal arguments");i instanceof t.resolvedRequestType.clazz||(i=new t.resolvedRequestType.clazz(i)),this.rpcImpl(t.fqn(),i,(function(e,i){if(e)a(e);else{null===i&&(i="");try{i=t.resolvedResponseType.clazz.decode(i)}catch(e){}i&&i instanceof t.resolvedResponseType.clazz?a(null,i):a(Error("Illegal response type received in service method "+n.name+"#"+t.name))}}))}catch(e){setTimeout(a.bind(this,e),0)}},i[t.name]=function(e,n,a){new i(e)[t.name](n,a)},Object.defineProperty&&(Object.defineProperty(i[t.name],"$options",{value:t.buildOpt()}),Object.defineProperty(a[t.name],"$options",{value:i[t.name].$options}))}(o[r]);return Object.defineProperty&&(Object.defineProperty(i,"$options",{value:n.buildOpt()}),Object.defineProperty(a,"$options",{value:i.$options}),Object.defineProperty(i,"$type",{value:n}),Object.defineProperty(a,"$type",{value:n})),i}(t,this)},n.Service=w;var T=function(e,t,n,a){i.call(this,e,t,n),this.className="Service.Method",this.options=a||{}};(T.prototype=Object.create(i.prototype)).buildOpt=r.buildOpt,n.Service.Method=T;var E=function(e,t,n,i,a,o,r,l){T.call(this,e,t,n,l),this.className="Service.RPCMethod",this.requestName=i,this.responseName=a,this.requestStream=o,this.responseStream=r,this.resolvedRequestType=null,this.resolvedResponseType=null};return E.prototype=Object.create(T.prototype),n.Service.RPCMethod=E,n}(o),o.Builder=function(e,t,i){var a=function(e){this.ns=new i.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},o=a.prototype;function r(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,r(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}return a.isMessage=function(e){return"string"==typeof e.name&&void 0===e.values&&void 0===e.rpc},a.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},a.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},a.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},a.isExtend=function(e){return"string"==typeof e.ref},o.reset=function(){return this.ptr=this.ns,this},o.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new i.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},o.create=function(t){if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(var n=[t];n.length>0;){if(t=n.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){var o=t.shift();if(a.isMessage(o)){var r=new i.Message(this,this.ptr,o.name,o.options,o.isGroup,o.syntax),l={};o.oneofs&&Object.keys(o.oneofs).forEach((function(e){r.addChild(l[e]=new i.Message.OneOf(this,r,e))}),this),o.fields&&o.fields.forEach((function(e){if(null!==r.getChild(0|e.id))throw Error("duplicate or invalid field id in "+r.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+r.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=l[e.oneof]))throw Error("illegal oneof in "+r.name+"#"+e.name+": "+e.oneof);e=new i.Message.Field(this,r,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,o.syntax),t&&t.fields.push(e),r.addChild(e)}),this);var d=[];if(o.enums&&o.enums.forEach((function(e){d.push(e)})),o.messages&&o.messages.forEach((function(e){d.push(e)})),o.services&&o.services.forEach((function(e){d.push(e)})),o.extensions&&("number"==typeof o.extensions[0]?r.extensions=[o.extensions]:r.extensions=o.extensions),this.ptr.addChild(r),d.length>0){n.push(t),t=d,d=null,this.ptr=r,r=null;continue}d=null}else if(a.isEnum(o))r=new i.Enum(this,this.ptr,o.name,o.options,o.syntax),o.values.forEach((function(e){r.addChild(new i.Enum.Value(this,r,e.name,e.id))}),this),this.ptr.addChild(r);else if(a.isService(o))r=new i.Service(this,this.ptr,o.name,o.options),Object.keys(o.rpc).forEach((function(e){var t=o.rpc[e];r.addChild(new i.Service.RPCMethod(this,r,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(r);else{if(!a.isExtend(o))throw Error("not a valid definition: "+JSON.stringify(o));if(r=this.ptr.resolve(o.ref,!0))o.fields.forEach((function(t){if(null!==r.getChild(0|t.id))throw Error("duplicate extended field id in "+r.name+": "+t.id);if(r.extensions){var n=!1;if(r.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(n=!0)})),!n)throw Error("illegal extended field id in "+r.name+": "+t.id+" (not within valid ranges)")}var a=t.name;this.options.convertFieldsToCamelCase&&(a=e.Util.toCamelCase(a));var o=new i.Message.ExtensionField(this,r,t.rule,t.type,this.ptr.fqn()+"."+a,t.id,t.options),l=new i.Extension(this,this.ptr,t.name,o);o.extension=l,this.ptr.addChild(l),r.addChild(o)}),this);else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("extended message "+o.ref+" is not defined")}o=null,r=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(t,i){var a="/";if("string"==typeof i){if(e.Util.IS_NODE&&(i=n(5).resolve(i)),!0===this.files[i])return this.reset();this.files[i]=!0}else if("object"==typeof i){var o=i.root;e.Util.IS_NODE&&(o=n(5).resolve(o)),(o.indexOf("\\")>=0||i.file.indexOf("\\")>=0)&&(a="\\");var l=o+a+i.file;if(!0===this.files[l])return this.reset();this.files[l]=!0}if(t.imports&&t.imports.length>0){var d,s=!1;"object"==typeof i?(this.importRoot=i.root,s=!0,d=this.importRoot,i=i.file,(d.indexOf("\\")>=0||i.indexOf("\\")>=0)&&(a="\\")):"string"==typeof i?this.importRoot?d=this.importRoot:i.indexOf("/")>=0?""===(d=i.replace(/\/[^\/]*$/,""))&&(d="/"):i.indexOf("\\")>=0?(d=i.replace(/\\[^\\]*$/,""),a="\\"):d=".":d=null;for(var m=0;m<t.imports.length;m++)if("string"==typeof t.imports[m]){if(!d)throw Error("cannot determine import root");var p=t.imports[m];if("google/protobuf/descriptor.proto"===p)continue;if(p=d+a+p,!0===this.files[p])continue;/\.proto$/i.test(p)&&!e.DotProto&&(p=p.replace(/\.proto$/,".json"));var u=e.Util.fetch(p);if(null===u)throw Error("failed to import '"+p+"' in '"+i+"': file not found");/\.json$/i.test(p)?this.import(JSON.parse(u+""),p):this.import(e.DotProto.Parser.parse(u),p)}else i?/\.(\w+)$/.test(i)?this.import(t.imports[m],i.replace(/^(.+)\.(\w+)$/,(function(e,t,n){return t+"_import"+m+"."+n}))):this.import(t.imports[m],i+"_import"+m):this.import(t.imports[m]);s&&(this.importRoot=null)}t.package&&this.define(t.package),t.syntax&&r(t);var f=this.ptr;return t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},o.resolveAll=function(){var n;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof i.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof i.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(n=(this.ptr instanceof i.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=n,n instanceof i.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==n.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(n instanceof i.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=n.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((n=this.ptr.parent.resolve(this.ptr.requestName,!0))&&n instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=n,!((n=this.ptr.parent.resolve(this.ptr.responseName,!0))&&n instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=n}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},o.build=function(e){if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(var t="string"==typeof e?e.split("."):e,n=this.result,i=0;i<t.length;i++){if(!n[t[i]]){n=null;break}n=n[t[i]]}return n},o.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},o.toString=function(){return"Builder"},a.Message=function(){},a.Enum=function(){},a.Service=function(){},a}(o,o.Lang,o.Reflect),o.Map=function(e,t){var n=function(e,n){if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),n)for(var i=Object.keys(n),a=0;a<i.length;a++){var o=this.keyElem.valueFromString(i[a]),r=this.valueElem.verifyValue(n[i[a]]);this.map[this.keyElem.valueToString(o)]={key:o,value:r}}},i=n.prototype;function a(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}return i.clear=function(){this.map={}},i.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),n=t in this.map;return delete this.map[t],n},i.entries=function(){for(var e,t=[],n=Object.keys(this.map),i=0;i<n.length;i++)t.push([(e=this.map[n[i]]).key,e.value]);return a(t)},i.keys=function(){for(var e=[],t=Object.keys(this.map),n=0;n<t.length;n++)e.push(this.map[t[n]].key);return a(e)},i.values=function(){for(var e=[],t=Object.keys(this.map),n=0;n<t.length;n++)e.push(this.map[t[n]].value);return a(e)},i.forEach=function(e,t){for(var n,i=Object.keys(this.map),a=0;a<i.length;a++)e.call(t,(n=this.map[i[a]]).value,n.key,this)},i.set=function(e,t){var n=this.keyElem.verifyValue(e),i=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(n)]={key:n,value:i},this},i.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));if(t in this.map)return this.map[t].value},i.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},n}(0,o.Reflect),o.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=o.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=o.populateAccessors),new o.Builder(e)},o.loadJson=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=null),t&&"object"==typeof t||(t=o.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),t.import(e,n),t.resolveAll(),t},o.loadJsonFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return o.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(i){if(null!==i)try{t(null,o.loadJson(JSON.parse(i),n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var i=o.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===i?null:o.loadJson(JSON.parse(i),n,e)},o})?a.apply(t,o):a)||(e.exports=r)}).call(this,n(19))},function(e){e.exports={package:"com.zhihu.za.proto",options:{java_outer_classname:"ZaSubSessionProto","(current_log_version)":"3.1.51"},messages:[{name:"ZaOptions",fields:[{rule:"optional",type:"string",name:"hv",id:1}]},{name:"ZaLogEntry",fields:[{rule:"optional",type:"string",name:"log_version",id:1},{rule:"optional",type:"int32",name:"local_increment_id",id:2},{rule:"optional",type:"LogType",name:"log_type",id:3},{rule:"optional",type:"BaseInfo",name:"base",id:4},{rule:"optional",type:"DetailInfo",name:"detail",id:5},{rule:"optional",type:"ExtraInfo",name:"extra",id:6},{rule:"optional",type:"StringLogInfo",name:"string_log",id:7},{rule:"optional",type:"ExpInfo",name:"exp",id:8},{rule:"optional",type:"proto3.ZaLogEntry",name:"za_log_entry_new",id:9}],enums:[{name:"LogType",values:[{name:"Unknown",id:0},{name:"Event",id:1},{name:"PageShow",id:2},{name:"CardShow",id:3},{name:"Ping",id:4},{name:"Backend",id:5},{name:"Crash",id:6},{name:"Monitor",id:7},{name:"Tmp",id:8},{name:"ExpEvent",id:9},{name:"Point",id:10},{name:"Proto3",id:11}]}]},{name:"StringLogInfo",fields:[{rule:"optional",type:"string",name:"app_view_log",id:1},{rule:"optional",type:"Type",name:"type",id:2}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"AppView",id:1},{name:"WebView",id:2}]}]},{name:"ZaLogBatchEntry",fields:[{rule:"repeated",type:"ZaLogEntry",name:"entry",id:1}]},{name:"BaseInfo",fields:[{rule:"optional",type:"IDInfo",name:"id",id:1},{rule:"optional",type:"ClientInfo",name:"client",id:2},{rule:"optional",type:"TimeInfo",name:"time",id:3},{rule:"optional",type:"NetworkInfo",name:"network",id:4},{rule:"optional",type:"LaunchInfo",name:"launch",id:5},{rule:"optional",type:"TaskIDInfo",name:"task_id",id:6,options:{deprecated:!0}},{rule:"optional",type:"ExperimentInfo",name:"experiment",id:7},{rule:"optional",type:"AbInfo",name:"ab",id:8}]},{name:"User",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"People",id:1},{name:"Org",id:2},{name:"Guest",id:3}]}]},{name:"TaskUser",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"New",id:1},{name:"Old",id:2},{name:"Risk",id:3},{name:"Banned",id:4}]}]},{name:"Org",fields:[],enums:[{name:"Status",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Forbidden",id:2},{name:"Reject",id:3},{name:"Audit",id:4},{name:"Register",id:5}]}]},{name:"Business",fields:[],enums:[{name:"Type",values:[{name:"Unknow",id:0},{name:"Content",id:1},{name:"Alchemy",id:2},{name:"Commerce",id:3},{name:"ZhihuLite",id:4}]}]},{name:"IDInfo",fields:[{rule:"optional",type:"int64",name:"user_id",id:1},{rule:"optional",type:"string",name:"device_id",id:2},{rule:"optional",type:"string",name:"client_id",id:3},{rule:"optional",type:"string",name:"response_id",id:4},{rule:"repeated",type:"string",name:"experiment_id",id:5,options:{deprecated:!0}},{rule:"optional",type:"string",name:"session_id",id:6},{rule:"optional",type:"int32",name:"session_index",id:7},{rule:"optional",type:"bool",name:"is_user_id_day_new",id:8},{rule:"optional",type:"bool",name:"is_user_id_hour_new",id:9},{rule:"optional",type:"bool",name:"is_client_id_day_new",id:10},{rule:"optional",type:"bool",name:"is_client_id_hour_new",id:11},{rule:"optional",type:"bool",name:"is_device_id_day_new",id:12},{rule:"optional",type:"bool",name:"is_device_id_hour_new",id:13},{rule:"optional",type:"User.Type",name:"user_type",id:14},{rule:"optional",type:"bool",name:"is_user_logged_in",id:15},{rule:"optional",type:"bool",name:"is_valid_device",id:16},{rule:"optional",type:"string",name:"idfa",id:17},{rule:"optional",type:"string",name:"user_track_id",id:18},{rule:"optional",type:"string",name:"member_hash_id",id:19},{rule:"optional",type:"string",name:"guest_hash_id",id:20,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_guest_hash_id_day_new",id:21,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_guest_hash_id_hour_new",id:22,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_member_hash_id_day_new",id:23},{rule:"optional",type:"bool",name:"is_member_hash_id_hour_new",id:24},{rule:"optional",type:"bool",name:"deprecated_field",id:25,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"member_id",id:26},{rule:"optional",type:"bool",name:"is_idfa_day_new",id:27},{rule:"optional",type:"bool",name:"is_idfa_hour_new",id:28},{rule:"optional",type:"bool",name:"is_current_week_active",id:29,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_retain_two_week",id:30,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_retain_three_week",id:31,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_retain_four_week",id:32,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_loyalty",id:33,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"retain_day_num",id:34},{rule:"optional",type:"int32",name:"retain_week_num",id:35},{rule:"optional",type:"int32",name:"retain_month_num",id:36},{rule:"optional",type:"int32",name:"day_diff",id:37},{rule:"optional",type:"int32",name:"week_diff",id:38},{rule:"optional",type:"int32",name:"month_diff",id:39},{rule:"optional",type:"bool",name:"is_client_id_week_new",id:40},{rule:"optional",type:"Org.Status",name:"org_status",id:41},{rule:"optional",type:"bool",name:"is_client_id_month_new",id:42},{rule:"optional",type:"UserProfile",name:"user_profile",id:43},{rule:"optional",type:"bool",name:"is_package_day_new",id:44},{rule:"optional",type:"string",name:"sid",id:45},{rule:"optional",type:"TaskUser.Type",name:"task_user_type",id:46},{rule:"optional",type:"string",name:"runtime_id",id:47},{rule:"optional",type:"string",name:"shumeng_device_id",id:48},{rule:"optional",type:"string",name:"local_client_id",id:49},{rule:"optional",type:"string",name:"tdid",id:50},{rule:"optional",type:"bool",name:"is_active_client_new_log",id:51},{rule:"optional",type:"string",name:"oaid",id:52},{rule:"optional",type:"string",name:"outside_station_id",id:53},{rule:"optional",type:"string",name:"sdid",id:54},{rule:"optional",type:"bool",name:"is_spam_member",id:55}]},{name:"UserProfile",fields:[{rule:"optional",type:"ActiveUser",name:"active_user",id:1}]},{name:"ActiveUser",fields:[{rule:"optional",type:"User.Type",name:"type",id:1},{rule:"optional",type:"bool",name:"is_pu",id:2},{rule:"optional",type:"string",name:"loyalty",id:3},{rule:"optional",type:"string",name:"frequency",id:4},{rule:"optional",type:"string",name:"recency",id:5},{rule:"optional",type:"string",name:"loyalty2",id:6}]},{name:"Platform",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"DesktopWeb",id:1},{name:"TabletWeb",id:2},{name:"MobileWeb",id:3},{name:"AndroidPhone",id:4},{name:"AndroidPad",id:5},{name:"iPhone",id:6},{name:"iPad",id:7},{name:"WechatApp",id:8},{name:"BaiduApp",id:9},{name:"KuaiBaoApp",id:10},{name:"QQApp",id:11},{name:"QQBrowserApp",id:12},{name:"AliApp",id:13},{name:"QuickApp",id:14}]}]},{name:"BackendService",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Search",id:1},{name:"Ad",id:2},{name:"ZA_APP",id:3},{name:"Push",id:4},{name:"PersonalizedPush",id:5}]}]},{name:"Product",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Zhihu",id:1},{name:"ZhihuDaily",id:2},{name:"Dudu",id:3},{name:"Zhi",id:4},{name:"Trends",id:5},{name:"Za",id:6},{name:"Club",id:7},{name:"Push",id:8},{name:"ZhihuLite",id:9},{name:"ZhihuExplore",id:10},{name:"Pmtrainee",id:11}]}]},{name:"UserAgent",fields:[{rule:"optional",type:"string",name:"agent_family",id:1},{rule:"optional",type:"string",name:"agent_major",id:2},{rule:"optional",type:"string",name:"agent_minor",id:3},{rule:"optional",type:"string",name:"agent_patch",id:4},{rule:"optional",type:"string",name:"os_family",id:5},{rule:"optional",type:"string",name:"os_major",id:6},{rule:"optional",type:"string",name:"os_minor",id:7},{rule:"optional",type:"string",name:"os_patch",id:8},{rule:"optional",type:"string",name:"os_patchMinor",id:9},{rule:"optional",type:"string",name:"device_family",id:10},{rule:"optional",type:"string",name:"app_name",id:11},{rule:"optional",type:"string",name:"app_version",id:12}]},{name:"AdSource",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"string",name:"source",id:2},{rule:"optional",type:"string",name:"pub_id",id:3},{rule:"optional",type:"string",name:"sub_pub_id",id:4},{rule:"optional",type:"int64",name:"first_click_timestamp",id:5},{rule:"optional",type:"int64",name:"last_click_timestamp",id:6},{rule:"optional",type:"int64",name:"active_timestamp",id:7},{rule:"optional",type:"int32",name:"first_lag",id:8},{rule:"optional",type:"int32",name:"last_lag",id:9},{rule:"optional",type:"UTMInfo",name:"utm",id:10},{rule:"optional",type:"int64",name:"channel_id",id:11},{rule:"optional",type:"ChannelInfo",name:"active_channel",id:12},{rule:"optional",type:"ChannelInfo",name:"launch_channel",id:13},{rule:"optional",type:"string",name:"down_ticket",id:14}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"IDFA",id:1},{name:"IPUA",id:2},{name:"MUID",id:3}]}]},{name:"ChannelInfo",fields:[{rule:"optional",type:"int64",name:"id",id:1},{rule:"optional",type:"string",name:"name",id:2},{rule:"optional",type:"string",name:"type",id:3},{rule:"optional",type:"string",name:"media_type",id:4},{rule:"optional",type:"string",name:"app_store",id:5},{rule:"optional",type:"string",name:"agent_name",id:6},{rule:"optional",type:"string",name:"marking_name",id:7}]},{name:"ClientInfo",fields:[{rule:"optional",type:"Product.Type",name:"product",id:1},{rule:"optional",type:"Platform.Type",name:"platform",id:2},{rule:"optional",type:"string",name:"source",id:3},{rule:"optional",type:"string",name:"version_name",id:4},{rule:"optional",type:"int32",name:"version_code",id:5},{rule:"optional",type:"string",name:"user_agent",id:6},{rule:"optional",type:"BackendService.Type",name:"service",id:7},{rule:"optional",type:"UserAgent",name:"normalized_user_agent",id:8},{rule:"optional",type:"string",name:"update_source",id:9},{rule:"optional",type:"AdSource",name:"ad_source",id:10},{rule:"optional",type:"bool",name:"is_app_view",id:11,options:{default:!1}},{rule:"optional",type:"string",name:"charge_type",id:12},{rule:"optional",type:"bool",name:"is_in_app",id:13},{rule:"optional",type:"WechatApp",name:"wechat_app",id:14,options:{deprecated:!0}},{rule:"optional",type:"WechatApp.Type",name:"wechat_app_type",id:15},{rule:"optional",type:"string",name:"pre_installed_source",id:16},{rule:"optional",type:"string",name:"install_source",id:17},{rule:"optional",type:"proto3.Certification",name:"certification",id:18}]},{name:"WechatApp",fields:[{rule:"optional",type:"Type",name:"type",id:1}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Live",id:1}]}]},{name:"TimeInfo",fields:[{rule:"optional",type:"int64",name:"client_timestamp",id:1},{rule:"optional",type:"string",name:"client_timezone",id:2},{rule:"optional",type:"int64",name:"server_timestamp",id:3},{rule:"optional",type:"string",name:"date",id:4,options:{deprecated:!0}},{rule:"optional",type:"string",name:"hour",id:5,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"first_openapp_timestamp",id:6},{rule:"optional",type:"int64",name:"server_sync_timestamp",id:7},{rule:"optional",type:"int64",name:"client_sync_timestamp",id:8}]},{name:"MobileNetwork",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"GPRS",id:1},{name:"EDGE",id:2},{name:"UMTS",id:3},{name:"CDMA",id:4},{name:"EVDO_0",id:5},{name:"EVDO_A",id:6},{name:"EVDO_B",id:7},{name:"HSDPA",id:8},{name:"HSUPA",id:9},{name:"HSPA",id:10},{name:"IDEN",id:11},{name:"CDMA_1xRTT",id:12},{name:"LTE",id:13},{name:"EHRPD",id:14},{name:"HSPAP",id:15},{name:"GSM",id:16},{name:"TD_SCDMA",id:17},{name:"IWLAN",id:18}]}]},{name:"NetworkInfo",fields:[{rule:"optional",type:"NetworkType",name:"type",id:1},{rule:"optional",type:"MobileNetwork.Type",name:"mobile_network_type",id:2},{rule:"optional",type:"string",name:"isp",id:3},{rule:"optional",type:"string",name:"internet_ip",id:4},{rule:"optional",type:"string",name:"ssid",id:5},{rule:"optional",type:"string",name:"country",id:6},{rule:"optional",type:"string",name:"province",id:7},{rule:"optional",type:"string",name:"city",id:8},{rule:"optional",type:"string",name:"owner",id:9},{rule:"optional",type:"string",name:"internet_ipv6",id:10}],enums:[{name:"NetworkType",values:[{name:"Unknown",id:0},{name:"Wifi",id:1},{name:"Cellular",id:2},{name:"Bluetooth",id:3},{name:"Ethernet",id:4},{name:"Wimax",id:5},{name:"Other",id:6},{name:"None",id:7}]}]},{name:"LaunchInfo",fields:[{rule:"optional",type:"Source",name:"source",id:1},{rule:"optional",type:"ViewInfo",name:"view",id:2},{rule:"optional",type:"string",name:"package_name",id:3},{rule:"optional",type:"string",name:"link",id:4},{rule:"optional",type:"ContentInfo",name:"content",id:5},{rule:"optional",type:"string",name:"launch_desc",id:6},{rule:"optional",type:"string",name:"wechatapp_lauch_source",id:7},{rule:"optional",type:"FirstSource.Type",name:"first_source",id:8},{rule:"optional",type:"SecondSource.Type",name:"second_source",id:9},{rule:"optional",type:"LaunchMethod.Type",name:"method",id:10}],enums:[{name:"Source",values:[{name:"Unknown",id:0},{name:"Shortcut",id:1},{name:"Widge",id:2},{name:"Web",id:3},{name:"MobileWeb",id:4},{name:"Notification",id:5},{name:"Push",id:6},{name:"App",id:7},{name:"UniversalLink",id:8},{name:"Scheme",id:9},{name:"InternalLink",id:10},{name:"WebSearch",id:11},{name:"SystemSearch",id:12},{name:"TodayWidge",id:13},{name:"NotificationFlags",id:14}]}]},{name:"FirstSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Widge",id:1},{name:"Push",id:2},{name:"Scheme",id:3}]}]},{name:"SecondSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Widge",id:1},{name:"NotificationFlag",id:2},{name:"Components",id:3},{name:"SystemSearch",id:4},{name:"TodayWidge",id:5},{name:"Shortcut",id:6},{name:"Push",id:7},{name:"ChannelLink",id:8},{name:"WebSearch",id:9},{name:"APPLets",id:10},{name:"APP",id:11},{name:"UniversalLink",id:12},{name:"Scheme",id:13}]}]},{name:"LaunchMethod",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Cold",id:1},{name:"Hot",id:2},{name:"Warm",id:3}]}]},{name:"DetailInfo",fields:[{rule:"optional",type:"ViewInfo",name:"view",id:1},{rule:"optional",type:"ViewInfo",name:"last_event",id:2},{rule:"optional",type:"RequestInfo",name:"request_info",id:3,options:{deprecated:!0}},{rule:"optional",type:"ViewInfo",name:"referrer_event",id:4},{rule:"optional",type:"string",name:"browser_referrer",id:5},{rule:"optional",type:"ViewInfo",name:"intent_event",id:6},{rule:"optional",type:"bool",name:"is_active",id:7,options:{default:!0}},{rule:"optional",type:"ViewInfo",name:"hybrid_referrer",id:8},{rule:"optional",type:"bool",name:"is_hybrid",id:9,options:{default:!1}},{rule:"optional",type:"string",name:"referrer_url",id:10}]},{name:"CallStatus",fields:[{rule:"optional",type:"int32",name:"code",id:1},{rule:"optional",type:"string",name:"message",id:2},{rule:"optional",type:"string",name:"error_type",id:3},{rule:"optional",type:"int32",name:"api_error_code",id:4}]},{name:"HttpMethod",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Get",id:1},{name:"Post",id:2},{name:"Delete",id:3},{name:"Put",id:4}]}]},{name:"RequestSourceType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Json",id:1},{name:"HTML",id:2},{name:"DynamicPicture",id:3},{name:"StaticPicture",id:4},{name:"Audio",id:5},{name:"Video",id:6},{name:"JS",id:7},{name:"CSS",id:8}]}]},{name:"ServiceInfo",fields:[{rule:"optional",type:"string",name:"url",id:1},{rule:"optional",type:"int32",name:"offset",id:2},{rule:"optional",type:"int32",name:"limit",id:3},{rule:"optional",type:"string",name:"name",id:4},{rule:"optional",type:"int64",name:"latency",id:5},{rule:"optional",type:"string",name:"address",id:6},{rule:"optional",type:"Type",name:"type",id:7},{rule:"optional",type:"CallStatus",name:"status",id:8},{rule:"optional",type:"int32",name:"request_body_bytes",id:9},{rule:"optional",type:"int32",name:"response_body_bytes",id:10},{rule:"optional",type:"HttpMethod.Type",name:"http_method",id:11},{rule:"optional",type:"int32",name:"request_bytes",id:12},{rule:"optional",type:"int32",name:"response_bytes",id:13},{rule:"optional",type:"RequestSourceType.Type",name:"source_type",id:14},{rule:"optional",type:"string",name:"request_body_string",id:15},{rule:"optional",type:"string",name:"session_id",id:16},{rule:"optional",type:"int32",name:"request_count",id:17}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Http",id:1},{name:"Zone",id:2}]}]},{name:"RequestInfo",fields:[{rule:"repeated",type:"ServiceInfo",name:"remote",id:1},{rule:"optional",type:"ServiceInfo",name:"self",id:2},{rule:"optional",type:"bool",name:"hit_cache",id:3,options:{default:!1}}]},{name:"Element",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Button",id:1},{name:"Tab",id:2},{name:"InputBox",id:3},{name:"Text",id:4},{name:"Link",id:5},{name:"Image",id:6},{name:"Page",id:7},{name:"ListItem",id:8},{name:"Card",id:9},{name:"Dialog",id:10},{name:"Select",id:11},{name:"Menu",id:12},{name:"Icon",id:13},{name:"NotificationBar",id:14},{name:"NavigationBar",id:15},{name:"QRCode",id:16},{name:"Audio",id:17},{name:"Blockquote",id:18},{name:"Video",id:19},{name:"Emoji",id:20},{name:"Gif",id:21},{name:"File",id:22}]}]},{name:"ElementName",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Title",id:1},{name:"Body",id:2},{name:"ViewAll",id:3},{name:"Author",id:4},{name:"End",id:5},{name:"Full",id:6},{name:"Comment",id:7},{name:"FollowerList",id:8},{name:"Post",id:9},{name:"Column",id:10},{name:"UnableSignIn",id:11},{name:"SignIn",id:12},{name:"SignUp",id:13},{name:"SNSSignIn",id:14},{name:"ResetPassword",id:15},{name:"SMSSignIn",id:16},{name:"SMSSignUp",id:17},{name:"RequestAuthorization",id:18},{name:"AllRightsReserved",id:19},{name:"Copyright",id:20},{name:"BookStore",id:21},{name:"Collection",id:22},{name:"Upvote",id:23},{name:"Edit",id:24},{name:"Report",id:25},{name:"Invite",id:26},{name:"ChooseOtherPurchaseChannel",id:27},{name:"CustomMoney",id:28},{name:"Wechat",id:29},{name:"Balance",id:30},{name:"Question",id:31},{name:"InsufficientBalance",id:32},{name:"Pay",id:33},{name:"Topic",id:34},{name:"Home",id:35},{name:"UseDirection",id:36},{name:"Coupon",id:37},{name:"Help",id:38},{name:"Phone",id:39},{name:"Mail",id:40},{name:"Category",id:41},{name:"Recommend",id:42},{name:"Subscription",id:43},{name:"Purchase",id:44},{name:"LiveAlbum",id:45},{name:"Sign",id:46},{name:"Close",id:47},{name:"Answer",id:48},{name:"Follower",id:49},{name:"Enter",id:50},{name:"User",id:51},{name:"Evaluate",id:52},{name:"Play",id:53},{name:"MyCourse",id:54},{name:"Message",id:55},{name:"Interested",id:56},{name:"Purchased",id:57},{name:"WaitForEvaluate",id:58},{name:"Detail",id:59},{name:"PinList",id:60},{name:"Download",id:61},{name:"OpenApp",id:62},{name:"Join",id:63},{name:"Pin",id:64},{name:"Next",id:65},{name:"Outline",id:66},{name:"Users",id:67},{name:"SearchInsteadFor",id:68},{name:"SearchCorrection",id:69},{name:"PublicShow",id:70},{name:"FeedSource",id:71},{name:"NotificationSetting",id:72},{name:"QRCodeScan",id:73},{name:"SmallImage",id:74},{name:"LargeImage",id:75},{name:"PaymentType",id:76},{name:"NewMessage",id:77},{name:"MoreAction",id:78},{name:"At",id:79},{name:"Hashtag",id:80},{name:"HotArea",id:81},{name:"Shoot",id:82},{name:"PhotoAlbum",id:83},{name:"OperationAccount",id:84},{name:"ContentLink",id:85},{name:"Audio",id:86},{name:"PeopleOnline",id:87},{name:"Document",id:88},{name:"Fan",id:89},{name:"Cover",id:90},{name:"RightSource",id:91},{name:"DB",id:92},{name:"Explore",id:93},{name:"Market",id:94},{name:"Notification",id:95},{name:"Filter",id:96},{name:"MarketNotification",id:97},{name:"Audition",id:98},{name:"Locked",id:99},{name:"ListenInApp",id:100},{name:"IMDb",id:101},{name:"InviteAnswer",id:102},{name:"EditAnswer",id:103},{name:"ViewAnswer",id:104},{name:"AnonymousPurchase",id:105},{name:"SNSSignUp",id:106},{name:"Plus",id:107},{name:"ContinueAdd",id:108},{name:"TextArea",id:109},{name:"ViewSeachResult",id:110},{name:"Rountable",id:111},{name:"Roundtable",id:112},{name:"AllRead",id:113},{name:"MessageEntrance",id:114},{name:"DiscussionHashtag",id:115},{name:"ViewMemberStatus",id:116},{name:"Repin",id:117},{name:"Collections",id:118},{name:"Video",id:119},{name:"HomefeedVideo",id:120},{name:"SpecialTopic",id:121},{name:"PPT",id:122},{name:"Activity",id:123},{name:"Music",id:124},{name:"Subtitle",id:125},{name:"Drama",id:126}]}]},{name:"Action",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Click",id:1},{name:"Hover",id:2},{name:"Select",id:3},{name:"Unselect",id:4},{name:"Close",id:5},{name:"Search",id:6},{name:"Expand",id:7},{name:"Collapse",id:8},{name:"Ok",id:9},{name:"Cancel",id:10},{name:"Remove",id:11},{name:"NextPage",id:12},{name:"PrevPage",id:13},{name:"GoPage",id:14},{name:"OpenUrl",id:15},{name:"StartInput",id:16},{name:"Paste",id:17},{name:"LoadNewFeed",id:18},{name:"RollForMore",id:19},{name:"AutoSave",id:20},{name:"ViewNotification",id:21},{name:"Switch",id:22},{name:"Upvote",id:23},{name:"UnUpvote",id:24},{name:"Downvote",id:25},{name:"UnDownvote",id:26},{name:"Thank",id:27},{name:"UnThank",id:28},{name:"NoHelp",id:29},{name:"UnNoHelp",id:30},{name:"Follow",id:31},{name:"UnFollow",id:32},{name:"SignUp",id:33},{name:"SignIn",id:34},{name:"Back",id:35},{name:"Exit",id:36},{name:"StatusReport",id:37},{name:"Ignore",id:38},{name:"UnIgnore",id:39},{name:"LoadMore",id:40},{name:"BackToTop",id:41},{name:"Refresh",id:42},{name:"Collect",id:43},{name:"UnCollect",id:44},{name:"CommentIntent",id:45},{name:"ShareIntent",id:46},{name:"CollectIntent",id:47},{name:"ReportIntent",id:48},{name:"EndCommentIntent",id:49},{name:"Pay",id:50},{name:"Play",id:51},{name:"PayIntent",id:52},{name:"Send",id:53},{name:"StartRecord",id:54},{name:"EndRecord",id:55},{name:"Like",id:56},{name:"StopPlay",id:57},{name:"EndPlay",id:58},{name:"Mute",id:59},{name:"UnMute",id:60},{name:"Ban",id:61},{name:"UnBan",id:62},{name:"Load",id:63},{name:"Hide",id:64},{name:"Share",id:65},{name:"SwipeLeft",id:66},{name:"SwipeRight",id:67},{name:"VoteIntent",id:68},{name:"MentionIntent",id:69},{name:"QuestionIntent",id:70},{name:"Invite",id:71},{name:"UnInvite",id:72},{name:"Download",id:73},{name:"Continue",id:74},{name:"Report",id:75},{name:"Give",id:76},{name:"Receive",id:77},{name:"Redeem",id:78},{name:"Charge",id:79},{name:"GetCaptcha",id:80},{name:"ResetPassword",id:81},{name:"Skip",id:82},{name:"Preview",id:83},{name:"Read",id:84},{name:"Authorize",id:85},{name:"Delete",id:86},{name:"Upload",id:87},{name:"AutoPlay",id:88},{name:"Fold",id:89},{name:"Scroll",id:90},{name:"Comment",id:91},{name:"EndComment",id:92},{name:"Mention",id:93},{name:"Question",id:94},{name:"Vote",id:95},{name:"Answer",id:96},{name:"Post",id:97},{name:"AutoRefresh",id:98},{name:"Message",id:99},{name:"UnFold",id:100},{name:"OneStepRefresh",id:101},{name:"ScrollToBottom",id:102},{name:"Pin",id:103},{name:"Launch",id:104},{name:"SMSSignUp",id:105},{name:"SNSSignIn",id:106},{name:"Active",id:107},{name:"Terminate",id:108},{name:"InActive",id:109},{name:"Logout",id:110},{name:"Open",id:111},{name:"Subscribe",id:112},{name:"Anonymize",id:113},{name:"Tip",id:114},{name:"UnSubscribe",id:115},{name:"UnAnonymize",id:116},{name:"Live",id:117},{name:"UnLike",id:118},{name:"AddCalendar",id:119},{name:"CopyLink",id:120},{name:"Evaluate",id:121},{name:"Add",id:122},{name:"Connect",id:123},{name:"Forward",id:124},{name:"Pause",id:125},{name:"Backward",id:126},{name:"RefreshAll",id:127},{name:"PullForMore",id:128},{name:"AscOrder",id:129},{name:"DescOrder",id:130},{name:"Zhi",id:131},{name:"FlipCamera",id:132},{name:"Drag",id:133},{name:"Reward",id:134},{name:"Review",id:135},{name:"ResumePlay",id:136},{name:"Playing",id:137},{name:"Compress",id:138},{name:"Change",id:139},{name:"LongPress",id:140},{name:"ScreenShot",id:141},{name:"ReportAppList",id:142},{name:"AutoPause",id:143},{name:"Touch3D",id:144},{name:"Reaction",id:145},{name:"Repin",id:146},{name:"Response",id:147},{name:"PeopleOnline",id:148},{name:"Sort",id:149},{name:"PrevTrack",id:150},{name:"NextTrack",id:151},{name:"Shield",id:152},{name:"UnShield",id:153},{name:"Copy",id:154},{name:"UnAdd",id:155},{name:"BackToOtherApp",id:156},{name:"UnLock",id:157},{name:"ReadFinish",id:158},{name:"OpenApp",id:159},{name:"Submit",id:160},{name:"Join",id:161},{name:"SMSSignIn",id:162},{name:"Edit",id:163},{name:"Retry",id:164},{name:"NormalShoot",id:165},{name:"ModuleShoot",id:166},{name:"PhotoShoot",id:167},{name:"Save",id:168},{name:"AutoDelete",id:169},{name:"DragLeft",id:170},{name:"DragRight",id:171},{name:"AutoPlayDidLast",id:172},{name:"Score",id:173},{name:"Allow",id:174},{name:"NotAllow",id:175},{name:"SignOut",id:176},{name:"Accept",id:177},{name:"UnAccept",id:178},{name:"TryScheme",id:179},{name:"Applaud",id:180},{name:"Stick",id:181},{name:"UnStick",id:182},{name:"UnApplaud",id:183},{name:"StartVideox",id:184},{name:"EndVideox",id:185},{name:"Withdraw",id:186},{name:"SlidePlay",id:187},{name:"MusicPlay",id:188}]}]},{name:"Module",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"AnswerItem",id:1},{name:"PostItem",id:2},{name:"QuestionItem",id:3},{name:"RoundtableItem",id:4},{name:"TopicItem",id:5},{name:"UserItem",id:6},{name:"LogItem",id:7},{name:"CollectionItem",id:8},{name:"CommentItem",id:9},{name:"FeedItem",id:10},{name:"HoverCard",id:11},{name:"HomeFeedList",id:12},{name:"TopStoryFeedList",id:13},{name:"SignInForm",id:14},{name:"SignUpForm",id:15},{name:"SignInDialog",id:16},{name:"SignUpDialog",id:17},{name:"SNSSignIn",id:18},{name:"VoteInfo",id:19},{name:"VoteBar",id:20},{name:"FeedSource",id:21},{name:"RelatedQuestions",id:22},{name:"Captcha",id:23},{name:"HomeTopics",id:24},{name:"PayCard",id:25},{name:"MessageItem",id:26},{name:"Toast",id:27},{name:"SnackBar",id:28},{name:"ToolBar",id:29},{name:"LiveItem",id:30},{name:"ShareCard",id:31},{name:"Column",id:32},{name:"ColumnItem",id:33},{name:"Roundtable",id:34},{name:"BottomBar",id:35},{name:"CommentEditView",id:36},{name:"FloatingActionButton",id:37},{name:"MoreAction",id:38},{name:"PostEditView",id:39},{name:"QuestionEditView",id:40},{name:"AnswerEditView",id:41},{name:"TitleEditView",id:42},{name:"TopicEditView",id:43},{name:"DescribeEditView",id:44},{name:"MentionUserList",id:45},{name:"TopNavBar",id:46},{name:"AdItem",id:47},{name:"AdMenu",id:48},{name:"SearchResultItem",id:49},{name:"SearchAutocompleteList",id:50},{name:"ReportDialog",id:51},{name:"ReportItem",id:52},{name:"HarmfulDialog",id:53},{name:"ActionSheet",id:54},{name:"SearchResultList",id:55},{name:"RightSideBar",id:56},{name:"RecoverPasswordForm",id:57},{name:"ResetPasswordForm",id:58},{name:"SMSSignUpForm",id:59},{name:"SMSSignInForm",id:60},{name:"SMSVerificationForm",id:61},{name:"UnableSignInForm",id:62},{name:"RecordCard",id:63},{name:"ImagePicker",id:64},{name:"MemberArea",id:65},{name:"TopAnswerer",id:66},{name:"ValidationReminderItem",id:67},{name:"AvatarReminderItem",id:68},{name:"HeadlineReminderItem",id:69},{name:"SuggestedQuestionsItem",id:70},{name:"PromotionItem",id:71},{name:"ExternalAdItem",id:72},{name:"EBookItem",id:73},{name:"ProfileHeader",id:74},{name:"PurchaseChannelDialog",id:75},{name:"RecentlyViewedDialog",id:76},{name:"TopicIndexItem",id:77},{name:"TopicIndexList",id:78},{name:"CommentCard",id:79},{name:"FoldedArea",id:80},{name:"CommentList",id:81},{name:"AnswerList",id:82},{name:"Bubble",id:83},{name:"RelatedLives",id:84},{name:"TopicList",id:85},{name:"SearchBox",id:86},{name:"RelatedTopics",id:87},{name:"QuestionList",id:88},{name:"ChargeCard",id:89},{name:"LiveBanner",id:90},{name:"ContentList",id:91},{name:"UserList",id:92},{name:"ColumnList",id:93},{name:"HomeEntry",id:94},{name:"InstallShortcut",id:95},{name:"Banner",id:96},{name:"FeedList",id:97},{name:"SharePin",id:98},{name:"PinItem",id:99},{name:"CouponItem",id:100},{name:"CouponList",id:101},{name:"ConfirmForm",id:102},{name:"EventItem",id:103},{name:"LiveList",id:104},{name:"EBookList",id:105},{name:"EBookSpecialItem",id:106},{name:"LiveAlbumItem",id:107},{name:"InvitationCard",id:108},{name:"CollectionList",id:109},{name:"SignForm",id:110},{name:"EditorRecommendList",id:111},{name:"RemixAlbumItem",id:112},{name:"RemixItem",id:113},{name:"IgnoreCard",id:114},{name:"InvitationFrame",id:115},{name:"CollectionDialogue",id:116},{name:"LiveCourseItem",id:117},{name:"VideoItem",id:118},{name:"LinkItem",id:119},{name:"LinkList",id:120},{name:"LinkSource",id:121},{name:"SectionItem",id:122},{name:"SectionList",id:123},{name:"GuideItem",id:124},{name:"ShareGuideBar",id:125},{name:"LiveVideoItem",id:126},{name:"DanmakuItem",id:127},{name:"DanmakuList",id:128},{name:"LeftTabBar",id:129},{name:"ZhiItem",id:130},{name:"GifItem",id:131},{name:"CommentDialog",id:132},{name:"NonLinkAdItem",id:133},{name:"ExploreLinkItem",id:134},{name:"RankingItem",id:135},{name:"SearchSuggestCorrection",id:136},{name:"SearchAutoCorrection",id:137},{name:"BookReviewItem",id:138},{name:"ZhiMessageItem",id:139},{name:"NotificationItem",id:140},{name:"NotificationList",id:141},{name:"NotiBubble",id:142},{name:"AnnouncementItem",id:143},{name:"VideoUploadCard",id:144},{name:"SearchHistoryItem",id:145},{name:"SearchHistoryList",id:146},{name:"PresetWordItem",id:147},{name:"BindMailForm",id:148},{name:"BindPhoneForm",id:149},{name:"PopoverMarket",id:150},{name:"TouchIDDialog",id:151},{name:"PasswordPayDialog",id:152},{name:"ScreenShotsShareCard",id:153},{name:"PaymentConfirmDialog",id:154},{name:"NotificationGuideCard",id:155},{name:"ShareSuccessDialog",id:156},{name:"BindPhoneVerifyForm",id:157},{name:"BindPhoneFailForm",id:158},{name:"AppleStoreRateDailog",id:159},{name:"CollectPopover2AppleStore",id:160},{name:"GiveShareCard",id:161},{name:"ConfirmBar",id:162},{name:"DesktopNotificationCard",id:163},{name:"BrandQuestionAdBar",id:164},{name:"StickItem",id:165},{name:"StickList",id:166},{name:"TrackMetaItem",id:167},{name:"TrackMetaList",id:168},{name:"PinList",id:169},{name:"AddItem",id:170},{name:"Popover",id:171},{name:"TopTabBar",id:172},{name:"GiveConfirmForm",id:173},{name:"ProgressBar",id:174},{name:"ShareBottomBar",id:175},{name:"PinNewsItem",id:176},{name:"HotSearchWordItem",id:177},{name:"HotSearchWordList",id:178},{name:"AppleStoreUpdateDailog",id:179},{name:"AudioGlobalPlayer",id:180},{name:"ImageItem",id:181},{name:"Content",id:182},{name:"MaskBar",id:183},{name:"PromotionPopover",id:184},{name:"RemixAlbumList",id:185},{name:"EBookCategoryItem",id:186},{name:"DeterminerCard",id:187},{name:"QuestionDescription",id:188},{name:"CouponPopover",id:189},{name:"TopicIndexCatalogueButton",id:190},{name:"RecentPinList",id:191},{name:"SNSSignUpForm",id:192},{name:"PositionItem",id:193},{name:"PositionList",id:194},{name:"PinEditView",id:195},{name:"PinEditCardDialog",id:196},{name:"PinEditCard",id:197},{name:"SearchSuggestionItem",id:198},{name:"SearchSuggestionList",id:199},{name:"FeedGroupItem",id:200},{name:"SearchRecommendList",id:201},{name:"SearchSwitchTabBar",id:202},{name:"VideoModuleItem",id:203},{name:"VideoDraftItem",id:204},{name:"MusicItem",id:205},{name:"NotificationEntranceItem",id:206},{name:"LotteryModule",id:207},{name:"AlchemyCourseItem",id:208},{name:"AlchemySectionItem",id:209},{name:"AlchemyLessonItem",id:210},{name:"AlchemyHomeworkItem",id:211},{name:"SearchSwitchTabMenu",id:212},{name:"SuggestionHashTagItem",id:213},{name:"SuggestionHashTagList",id:214},{name:"SearchCategoryModule",id:215},{name:"LiveUnlimited",id:216},{name:"AudioBookItem",id:217},{name:"ChapterItem",id:218},{name:"ApplyZhiCard",id:219},{name:"AppItem",id:220},{name:"SlideItem",id:221},{name:"InstaBookItem",id:222},{name:"InstaBookList",id:223},{name:"EntitySearchWordItem",id:224},{name:"RecommendPinCard",id:225},{name:"NextAnswerModule",id:226},{name:"InstaBookFutureItem",id:227},{name:"InstaBookFeatureItem",id:228},{name:"MarketCardItem",id:229},{name:"SuggestionHistoryItem",id:230},{name:"RelatedSearchItem",id:231},{name:"ShopSearchItem",id:232},{name:"RelatedShopSearchItem",id:233},{name:"WantToSearchItem",id:234},{name:"LiteratureItem",id:235},{name:"BillboardLanternItem",id:236},{name:"BillboardWindowItem",id:237}]}]},{name:"ViewLocation",fields:[{rule:"optional",type:"Module.Type",name:"module",id:1},{rule:"optional",type:"int32",name:"index",id:2},{rule:"optional",type:"bool",name:"is_ad",id:3,options:{default:!1}},{rule:"optional",type:"string",name:"module_name",id:4},{rule:"optional",type:"bool",name:"is_video_playable",id:5,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"deep_index",id:6},{rule:"optional",type:"int32",name:"deep_size",id:7},{rule:"optional",type:"bool",name:"is_campaign",id:8,options:{default:!1}},{rule:"optional",type:"bool",name:"is_expanded",id:9,options:{default:!1}}]},{name:"ViewInfo",fields:[{rule:"optional",type:"string",name:"url",id:1},{rule:"optional",type:"string",name:"normalized_url",id:2,options:{deprecated:!0}},{rule:"optional",type:"Action.Type",name:"action",id:3},{rule:"optional",type:"Element.Type",name:"element",id:4},{rule:"repeated",type:"ViewLocation",name:"path",id:5},{rule:"optional",type:"string",name:"name",id:6},{rule:"optional",type:"ElementName.Type",name:"element_name",id:7},{rule:"optional",type:"bool",name:"is_intent",id:8,options:{default:!1}},{rule:"optional",type:"UrlInfo",name:"extracted_url",id:9},{rule:"optional",type:"string",name:"event_name",id:10},{rule:"optional",type:"int32",name:"id",id:11},{rule:"optional",type:"string",name:"name_en",id:12},{rule:"optional",type:"string",name:"page_id",id:13},{rule:"optional",type:"string",name:"page_name_en",id:14,options:{deprecated:!0}},{rule:"repeated",type:"string",name:"biz",id:15},{rule:"repeated",type:"string",name:"page_biz",id:16},{rule:"repeated",type:"string",name:"page_ids",id:17},{rule:"repeated",type:"string",name:"page_names_en",id:18},{rule:"optional",type:"string",name:"attached_info_bytes",id:19},{rule:"optional",type:"int32",name:"page_level",id:20},{rule:"repeated",type:"PageshowTransmission",name:"pageshow_trans",id:21},{rule:"optional",type:"string",name:"svip_channel_id",id:22},{rule:"optional",type:"int32",name:"svip_channel_level",id:23},{rule:"repeated",type:"PageCardshowTransmission",name:"pagecardshow_trans",id:24},{rule:"optional",type:"string",name:"origin_top_level_pageid",id:25},{rule:"optional",type:"int32",name:"page_index",id:26}]},{name:"StatusResult",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Success",id:1},{name:"Fail",id:2},{name:"BadCaptcha",id:3},{name:"BackToTop",id:4},{name:"Refresh",id:5},{name:"Bubble",id:6},{name:"OneStepRefresh",id:7},{name:"AutoRefresh",id:8}]}]},{name:"ExtraInfo",fields:[{rule:"optional",type:"DeviceInfo",name:"device",id:1},{rule:"optional",type:"AccountInfo",name:"account",id:2},{rule:"optional",type:"ContentInfo",name:"content",id:3},{rule:"optional",type:"SearchInfo",name:"search",id:4},{rule:"optional",type:"StatusInfo",name:"status",id:5},{rule:"repeated",type:"ModuleInfo",name:"module",id:6},{rule:"optional",type:"UrlInfo",name:"link",id:7},{rule:"optional",type:"CaptchaInfo",name:"captcha",id:8},{rule:"optional",type:"NotificationInfo",name:"notification",id:9},{rule:"optional",type:"PaymentInfo",name:"payment",id:10},{rule:"optional",type:"ZaErrorInfo",name:"za_error_info",id:11},{rule:"optional",type:"ButtonInfo",name:"button",id:12},{rule:"optional",type:"ShareInfo",name:"share",id:13},{rule:"optional",type:"ExperimentInfo",name:"experiment",id:14,options:{deprecated:!0}},{rule:"optional",type:"VerticalInfo",name:"vertical",id:15},{rule:"optional",type:"PlayInfo",name:"play",id:16},{rule:"optional",type:"TaskIDInfo",name:"task_id",id:17},{rule:"optional",type:"ReportInfo",name:"report",id:18},{rule:"optional",type:"RequestInfo",name:"request",id:19},{rule:"optional",type:"MonitorInfo",name:"monitor",id:20},{rule:"optional",type:"UTMInfo",name:"utm",id:21},{rule:"optional",type:"ReadInfo",name:"read",id:22},{rule:"optional",type:"AttachedInfo",name:"attached_info",id:23},{rule:"optional",type:"string",name:"attached_info_bytes",id:24},{rule:"optional",type:"MessageInfo",name:"message",id:25},{rule:"optional",type:"PersonalizedPushLog",name:"personalized_push_log",id:26},{rule:"optional",type:"QRCodeInfo",name:"qrcode",id:27},{rule:"optional",type:"AppListInfo",name:"app_list",id:28},{rule:"optional",type:"RewardInfo",name:"reward",id:29},{rule:"optional",type:"GifInfo",name:"gif",id:30},{rule:"optional",type:"ImageInfo",name:"image",id:31},{rule:"optional",type:"QuestionInfo",name:"question",id:32},{rule:"optional",type:"LocationInfo",name:"location",id:33},{rule:"optional",type:"string",name:"location_string",id:34},{rule:"optional",type:"string",name:"applist_string",id:35},{rule:"optional",type:"PageInfo",name:"page",id:36},{rule:"optional",type:"HttpDnsInfo",name:"http_dns",id:37}]},{name:"PageInfo",fields:[{rule:"optional",type:"int64",name:"elapsed",id:1},{rule:"optional",type:"string",name:"page_name",id:2},{rule:"optional",type:"string",name:"page_token",id:3},{rule:"optional",type:"int32",name:"viewing_ratio",id:4},{rule:"optional",type:"string",name:"page_profile",id:5}]},{name:"PlayInfo",fields:[{rule:"optional",type:"int64",name:"duration",id:1},{rule:"optional",type:"int64",name:"elapsed",id:2},{rule:"optional",type:"int64",name:"video_bitrate",id:3},{rule:"optional",type:"int64",name:"video_bytes",id:4},{rule:"optional",type:"string",name:"video_resolution",id:5},{rule:"optional",type:"VideoQulity.Type",name:"video_quality",id:6},{rule:"optional",type:"ScreenDirection.Type",name:"screen_direction",id:7},{rule:"optional",type:"int64",name:"video_load_time",id:8},{rule:"optional",type:"int64",name:"transcode_time",id:9},{rule:"optional",type:"int64",name:"upload_time",id:10},{rule:"optional",type:"string",name:"play_event_identifier",id:11},{rule:"optional",type:"PlayMode.Type",name:"play_mode",id:12},{rule:"optional",type:"UploadSource.Type",name:"upload_source",id:13},{rule:"optional",type:"int64",name:"progress_time",id:14},{rule:"optional",type:"bool",name:"is_playing",id:15},{rule:"optional",type:"VideoBusinessSource.Type",name:"video_business_source",id:16},{rule:"optional",type:"string",name:"page_id",id:17},{rule:"optional",type:"string",name:"text_id",id:18},{rule:"optional",type:"string",name:"font_size",id:19},{rule:"optional",type:"string",name:"font_id",id:20},{rule:"optional",type:"string",name:"font_color",id:21},{rule:"optional",type:"string",name:"align",id:22},{rule:"optional",type:"int64",name:"page_num",id:23},{rule:"optional",type:"int64",name:"picture_num",id:24},{rule:"optional",type:"int64",name:"frame_duration",id:25},{rule:"optional",type:"string",name:"transition_id",id:26},{rule:"optional",type:"CreateType",name:"create_type",id:27},{rule:"optional",type:"int64",name:"loading_duration",id:28},{rule:"optional",type:"VideoDecode.Type",name:"video_decode",id:29},{rule:"optional",type:"string",name:"player_version",id:30},{rule:"optional",type:"string",name:"video_manufacturer",id:31},{rule:"optional",type:"string",name:"video_format",id:32},{rule:"optional",type:"int64",name:"first_buffer_time",id:33},{rule:"optional",type:"int64",name:"first_buffer_down",id:34},{rule:"optional",type:"int64",name:"play_stop_num",id:35},{rule:"optional",type:"int64",name:"play_stop_time",id:36},{rule:"optional",type:"int64",name:"play_stop_down",id:37},{rule:"optional",type:"int64",name:"seek_times_num",id:38},{rule:"optional",type:"int64",name:"seek_nodata_num",id:39},{rule:"optional",type:"int64",name:"seek_nodata_time",id:40},{rule:"optional",type:"int64",name:"seek_nodata_down",id:41},{rule:"optional",type:"ExitWay.Type",name:"exit_way",id:42},{rule:"optional",type:"int64",name:"exit_time",id:43},{rule:"optional",type:"string",name:"play_error_code",id:44},{rule:"optional",type:"string",name:"play_stop_data",id:45},{rule:"optional",type:"string",name:"seek_data",id:46},{rule:"optional",type:"int64",name:"sound_recording_time",id:47},{rule:"optional",type:"string",name:"music_type",id:48},{rule:"optional",type:"string",name:"music_id",id:49},{rule:"optional",type:"string",name:"beauty_state",id:50},{rule:"optional",type:"string",name:"music_volume",id:51},{rule:"optional",type:"string",name:"sound_recording_volume",id:52},{rule:"optional",type:"string",name:"ppt_page_duration",id:53},{rule:"optional",type:"string",name:"ppt_id",id:54},{rule:"optional",type:"string",name:"challenge_topic_id",id:55},{rule:"optional",type:"string",name:"sound_rate",id:56},{rule:"optional",type:"BeautyInfo",name:"beauty",id:57},{rule:"optional",type:"bool",name:"play_result",id:58},{rule:"optional",type:"PlayTypeInfo.Type",name:"play_type",id:59},{rule:"optional",type:"bool",name:"agent_status",id:60},{rule:"optional",type:"string",name:"agent_version",id:61},{rule:"optional",type:"Business.Type",name:"bueiness_type",id:62},{rule:"optional",type:"int64",name:"position",id:63},{rule:"optional",type:"string",name:"first_buffer_progress",id:64},{rule:"optional",type:"string",name:"play_speed",id:65},{rule:"optional",type:"string",name:"video_cdn_ip",id:66},{rule:"optional",type:"int64",name:"video_composeed_duration",id:67},{rule:"optional",type:"int64",name:"video_material_count",id:68},{rule:"optional",type:"int64",name:"subtitle_img_count",id:69},{rule:"optional",type:"string",name:"video_draft_id",id:70},{rule:"optional",type:"string",name:"attachment_zvideo_id",id:72},{rule:"optional",type:"string",name:"picture_topic_download_time",id:73}],enums:[{name:"CreateType",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Mould",id:2},{name:"Ppt",id:3}]}]},{name:"VideoDecode",fields:[],enums:[{name:"Type",values:[{name:"Unknow",id:0},{name:"HardWareDecoding",id:1},{name:"SoftWareDecoding",id:2}]}]},{name:"ExitWay",fields:[],enums:[{name:"Type",values:[{name:"Unknow",id:0},{name:"SeekExit",id:1},{name:"StopExit",id:2}]}]},{name:"VideoBusinessSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"MarketCard",id:1},{name:"RemixAlbumVideo",id:2}]}]},{name:"UploadSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Album",id:1},{name:"Camera",id:2}]}]},{name:"ImageInfo",fields:[{rule:"optional",type:"UploadSource.Type",name:"upload_source",id:1}]},{name:"QuestionInfo",fields:[{rule:"optional",type:"int32",name:"bind_recommend_topic_count",id:1},{rule:"optional",type:"int32",name:"bind_topic_count",id:2}]},{name:"GifInfo",fields:[{rule:"optional",type:"int64",name:"gif_bytes",id:1},{rule:"optional",type:"int32",name:"gif_hight",id:2},{rule:"optional",type:"int32",name:"gif_width",id:3}]},{name:"BeautyInfo",fields:[{rule:"optional",type:"int64",name:"skin_grinding",id:1},{rule:"optional",type:"int64",name:"white",id:2},{rule:"optional",type:"int64",name:"face_lift",id:3},{rule:"optional",type:"int64",name:"big_eye",id:4}]},{name:"PlayTypeInfo",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Auto",id:1},{name:"Manual",id:2}]}]},{name:"VideoQulity",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Auto",id:1},{name:"HD",id:2},{name:"UHD",id:3},{name:"SD",id:4},{name:"LD",id:5},{name:"FHD",id:6}]}]},{name:"PlayMode",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Inline",id:1},{name:"FullScreen",id:2}]}]},{name:"ScreenDirection",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Horizontal",id:1},{name:"Vertical",id:2}]}]},{name:"QRCodeInfo",fields:[{rule:"optional",type:"bool",name:"has_flash",id:1},{rule:"optional",type:"bool",name:"is_picked",id:2}]},{name:"AppListInfo",fields:[{rule:"repeated",type:"string",name:"app",id:1},{rule:"repeated",type:"string",name:"pkg_name",id:2}]},{name:"PaymentInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"double",name:"money",id:2},{rule:"optional",type:"string",name:"id",id:3},{rule:"repeated",type:"CommodityInfo",name:"commodity",id:4},{rule:"optional",type:"CurrencyType.Type",name:"currency_type",id:5},{rule:"repeated",type:"CouponInfo",name:"coupon",id:6},{rule:"optional",type:"PayType.Type",name:"pay_type",id:7},{rule:"optional",type:"string",name:"transaction_id",id:8}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Wechat",id:1},{name:"Alipay",id:2},{name:"IAP",id:3},{name:"Balance",id:4},{name:"BEAN",id:5},{name:"Coin",id:6},{name:"EntrustWXPay",id:7},{name:"EntrustAliPay",id:8},{name:"EntrustIAP",id:9},{name:"NBCBZhihua",id:10},{name:"NBCBSubscription",id:11},{name:"FREE",id:12}]}]},{name:"PayType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"NoPassword",id:1},{name:"Password",id:2},{name:"TouchID",id:3}]}]},{name:"CouponInfo",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"int32",name:"index",id:2}]},{name:"CommodityInfo",fields:[{rule:"optional",type:"ContentInfo",name:"content",id:1},{rule:"optional",type:"double",name:"list_price",id:2},{rule:"optional",type:"double",name:"sale_price",id:3},{rule:"optional",type:"int32",name:"quantity",id:4}]},{name:"AccountType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Zhihu",id:1},{name:"Wechat",id:2},{name:"Weibo",id:3},{name:"QQ",id:4},{name:"Apple",id:5},{name:"Email",id:6},{name:"Phone",id:7},{name:"Ctcc",id:8},{name:"Cmcc",id:9},{name:"Cucc",id:10}]}]},{name:"AccountInfo",fields:[{rule:"optional",type:"AccountType.Type",name:"type",id:1},{rule:"optional",type:"string",name:"name",id:2},{rule:"optional",type:"string",name:"email",id:3},{rule:"optional",type:"string",name:"phone",id:4},{rule:"optional",type:"string",name:"group",id:5},{rule:"optional",type:"string",name:"operator",id:6}]},{name:"ContentType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"User",id:1},{name:"Topic",id:2},{name:"Question",id:3},{name:"Answer",id:4},{name:"Column",id:5},{name:"Collection",id:6},{name:"Post",id:7},{name:"Comment",id:8},{name:"Roundtable",id:9},{name:"Message",id:10},{name:"Live",id:11},{name:"ZhiMessage",id:12},{name:"LiveMessage",id:13},{name:"Ad",id:14},{name:"EBook",id:15},{name:"Log",id:16},{name:"Promotion",id:17},{name:"EBookSeries",id:18},{name:"LiveCategory",id:19},{name:"ExternalAd",id:20},{name:"TopicIndex",id:21},{name:"Pin",id:22},{name:"Coupon",id:23},{name:"Event",id:24},{name:"LiveAlbum",id:25},{name:"EBookSpecial",id:26},{name:"RemixAlbum",id:27},{name:"Remix",id:28},{name:"LiveCourse",id:29},{name:"Video",id:30},{name:"Link",id:31},{name:"LiveVideo",id:32},{name:"Danmaku",id:33},{name:"Zhi",id:34},{name:"NonLinkAd",id:35},{name:"ExploreLink",id:36},{name:"Ranking",id:37},{name:"BookReview",id:38},{name:"Notification",id:39},{name:"Announcement",id:40},{name:"PresetWord",id:41},{name:"TrackMeta",id:42},{name:"Gif",id:43},{name:"EBookCategory",id:44},{name:"Position",id:45},{name:"InternalAd",id:46},{name:"LivePackage",id:47},{name:"AlchemyCourse",id:48},{name:"AlchemySection",id:49},{name:"AlchemyLesson",id:50},{name:"AlchemyHomework",id:51},{name:"AudioBook",id:52},{name:"Chapter",id:53},{name:"InstaBook",id:54},{name:"Story",id:55},{name:"InstaBookFuture",id:56},{name:"InstaBookFeature",id:57},{name:"OneBox",id:58},{name:"ProfileSignalment",id:59},{name:"ProfileSignalmentReview",id:60},{name:"ProfileMedal",id:61},{name:"OneBoxMinorHot",id:62},{name:"OneBoxMajorHot",id:63},{name:"SpecialTopic",id:64},{name:"SpecialModule",id:65},{name:"Selection",id:66},{name:"MatchMajorHot",id:67},{name:"MatchList",id:68},{name:"TimeBox",id:69},{name:"MagiBox",id:70},{name:"VideoTopic",id:71},{name:"Nlive",id:72},{name:"Conversation",id:73},{name:"Material",id:74},{name:"CommunityCensor",id:75},{name:"CommercialActivity",id:76},{name:"ActivityUsers",id:77},{name:"QuestionAsk",id:78},{name:"RemixAlbumFree",id:79},{name:"InstaBookFree",id:80},{name:"PaidContent",id:81},{name:"PaidMagazine",id:82},{name:"PaidColumn",id:83},{name:"Bundle",id:84},{name:"PptLiveFree",id:85},{name:"EbookFree",id:86},{name:"AlbumVideoFree",id:87},{name:"Review",id:88},{name:"PaidAnswer",id:89},{name:"MagazineFree",id:90},{name:"AlbumVideo",id:91},{name:"Discussion",id:92},{name:"BazaarSpecial",id:93},{name:"Notify",id:94},{name:"Literature",id:95},{name:"Club",id:96},{name:"Clubpost",id:97},{name:"Videox",id:98},{name:"Zvideo",id:99},{name:"Drama",id:100},{name:"Annotation",id:101},{name:"Note",id:102},{name:"Training",id:103},{name:"TrainingBundle",id:104},{name:"InterestAdjustmentGuide",id:105},{name:"Clubtag",id:106},{name:"Banner",id:107},{name:"OpenClass",id:108},{name:"Special",id:109},{name:"Wiki",id:110},{name:"OnlineClass",id:111},{name:"Manga",id:112},{name:"Description",id:113},{name:"Timeline",id:114},{name:"SearchItem",id:115},{name:"FeedThirdPartItem",id:116},{name:"EcomEntity",id:117},{name:"TxHealthCard",id:118}]}]},{name:"ContentSubType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"News",id:1},{name:"Embedded",id:2},{name:"SelfHosted",id:3},{name:"ZhihuLink",id:4},{name:"ExternalLink",id:5},{name:"MetaCard",id:6},{name:"TVCard",id:7},{name:"LiveSetPublic",id:8},{name:"CourseSetPublic",id:9},{name:"RemixAlbumSetPublic",id:10},{name:"LiveReview",id:11},{name:"LiveReplyReview",id:12},{name:"RemixCommentAlbumTrack",id:13},{name:"RemixPublicAlbumTrackComment",id:14},{name:"RemixReplyAlbumTrackComment",id:15},{name:"LiveReceiveGift",id:16},{name:"CouponExpiring",id:17},{name:"CouponReceived",id:18},{name:"RemixAlbumTrackPublished",id:19}]}]},{name:"ContainerType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"SearchResultList",id:1},{name:"OneBoxMajorHot",id:2},{name:"OneBoxMinorHot",id:3},{name:"OneBoxHotRelated",id:4},{name:"RelatedSearch",id:5},{name:"MatchMajorHot",id:6},{name:"MatchList",id:7},{name:"TimeBox",id:8},{name:"MagiBox",id:9},{name:"WikiBox",id:10},{name:"ConversationBox",id:11},{name:"Billboard",id:12},{name:"OneBoxMarket",id:13},{name:"MarketActionCard",id:14},{name:"RelatedShop",id:15},{name:"WantToSearch",id:16},{name:"OneBoxMajorHotCollapsed",id:17},{name:"OneBoxMinorHotCollapsed",id:18},{name:"Lottery",id:19},{name:"DomainOneBoxMinorHot",id:20},{name:"SiteOneBox",id:21},{name:"ImageTextFlow",id:22},{name:"Club",id:23},{name:"Clubpost",id:24},{name:"MyCollect",id:25},{name:"MyHistory",id:26},{name:"AuthorOrHistory",id:27},{name:"BookList",id:28},{name:"ProductList",id:29},{name:"MultiAnswer",id:30},{name:"RedPacket",id:31},{name:"Education",id:32},{name:"MultiImagesAnswer",id:33},{name:"VideoBox",id:34},{name:"User",id:35},{name:"RoundtableHot",id:36},{name:"SpecialTopicHot",id:37},{name:"RelatedItem",id:38},{name:"HotLanding",id:39},{name:"Infobox",id:40},{name:"ProductBox",id:41},{name:"KOCBox",id:42},{name:"CityBox",id:43},{name:"Film",id:44},{name:"Novel",id:45},{name:"Text",id:46},{name:"HealthBox",id:47}]}]},{name:"MarketCardType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"SlotEventCard",id:1},{name:"SlotRemixAlbumFeedItem",id:2},{name:"SlotLiveFeedItem",id:3},{name:"SlotLiveActionCard",id:4},{name:"SlotRemixAlbumActionCard",id:5},{name:"SlotEbookActionCard",id:6},{name:"SlotVideoEventCard",id:7},{name:"SlotActionCard",id:8},{name:"SlotFeedNatureCard",id:9}]}]},{name:"ContentStatus",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"End",id:1},{name:"OnTheAir",id:2}]}]},{name:"ContentInfo",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"ContentType.Type",name:"type",id:2},{rule:"optional",type:"string",name:"snippet",id:3},{rule:"optional",type:"string",name:"author_id",id:4},{rule:"optional",type:"string",name:"parent_id",id:5},{rule:"optional",type:"int32",name:"upvote_num",id:6},{rule:"optional",type:"int32",name:"comment_num",id:7},{rule:"optional",type:"int32",name:"item_num",id:8},{rule:"optional",type:"int32",name:"follower_num",id:9},{rule:"optional",type:"int64",name:"publish_timestamp",id:10},{rule:"optional",type:"int64",name:"action_timestmap",id:11,options:{deprecated:!0}},{rule:"optional",type:"string",name:"token",id:12},{rule:"optional",type:"bool",name:"is_ad",id:13,options:{default:!1}},{rule:"optional",type:"string",name:"parent_token",id:14},{rule:"optional",type:"string",name:"member_hash_id",id:15},{rule:"optional",type:"AdInfo",name:"ad_info",id:16},{rule:"optional",type:"string",name:"author_token",id:17},{rule:"optional",type:"string",name:"author_member_hash_id",id:18},{rule:"optional",type:"ContentStatus.Type",name:"status_type",id:19},{rule:"optional",type:"ContentSubType.Type",name:"sub_type",id:20},{rule:"optional",type:"bool",name:"is_playable",id:21},{rule:"optional",type:"string",name:"video_id",id:22},{rule:"optional",type:"int32",name:"video_count",id:23},{rule:"repeated",type:"string",name:"topic_token",id:24,options:{deprecated:!0}},{rule:"optional",type:"string",name:"features",id:25,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"pic_count",id:26},{rule:"optional",type:"bool",name:"is_cache",id:27},{rule:"optional",type:"int32",name:"card_height",id:28},{rule:"optional",type:"int32",name:"card_width",id:29},{rule:"optional",type:"User.Type",name:"user_type",id:30}]},{name:"RewardInfo",fields:[{rule:"optional",type:"int32",name:"reward_count",id:1}]},{name:"Os",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Android",id:1},{name:"iOS",id:2},{name:"OsX",id:3},{name:"Windows",id:4}]}]},{name:"DeviceInfo",fields:[{rule:"optional",type:"string",name:"os_str",id:1},{rule:"optional",type:"Os.Type",name:"os_type",id:2},{rule:"optional",type:"string",name:"os_version",id:3},{rule:"optional",type:"int32",name:"os_bit",id:4},{rule:"optional",type:"int32",name:"sdk_level",id:5},{rule:"optional",type:"string",name:"model",id:6},{rule:"optional",type:"string",name:"brand",id:7},{rule:"optional",type:"bool",name:"is_root",id:8},{rule:"optional",type:"string",name:"rom_version",id:9},{rule:"optional",type:"string",name:"rom_name",id:10},{rule:"optional",type:"string",name:"cpu",id:11},{rule:"optional",type:"string",name:"screen",id:12},{rule:"optional",type:"string",name:"mac_addr",id:13},{rule:"optional",type:"string",name:"imei",id:14},{rule:"optional",type:"int32",name:"memory",id:15},{rule:"optional",type:"int32",name:"sd_card_1",id:16},{rule:"optional",type:"int32",name:"sd_card_2",id:17},{rule:"optional",type:"string",name:"imsi_1",id:18},{rule:"optional",type:"string",name:"imsi_2",id:19},{rule:"optional",type:"bool",name:"are_notifications_enabled",id:20},{rule:"optional",type:"bool",name:"shake_feedback_enabled",id:21},{rule:"optional",type:"string",name:"business_name",id:22}]},{name:"SearchInfo",fields:[{rule:"optional",type:"string",name:"raw_query",id:1},{rule:"optional",type:"string",name:"query",id:2},{rule:"repeated",type:"ContentType.Type",name:"restrict_type",id:3},{rule:"optional",type:"int32",name:"estimated_num",id:4},{rule:"optional",type:"ListInfo",name:"result",id:5},{rule:"optional",type:"bool",name:"is_complete_query",id:6,options:{default:!0}},{rule:"optional",type:"string",name:"next_query",id:7},{rule:"optional",type:"int64",name:"time_to_next_query",id:8},{rule:"optional",type:"string",name:"corrective_query",id:9},{rule:"optional",type:"string",name:"preset_query",id:10},{rule:"optional",type:"SearchSource.Type",name:"search_source",id:11},{rule:"optional",type:"string",name:"input_query",id:12},{rule:"optional",type:"bool",name:"is_magi",id:13,options:{default:!0}},{rule:"optional",type:"SearchMode.Type",name:"search_mode",id:14},{rule:"optional",type:"string",name:"hybrid_search_source",id:15},{rule:"optional",type:"string",name:"search_timeliness_mode",id:16},{rule:"optional",type:"int64",name:"search_valid_click_timestamp",id:17},{rule:"optional",type:"int64",name:"search_response_complete_timestamp",id:18},{rule:"optional",type:"string",name:"input_hash_id",id:19},{rule:"repeated",type:"SearchAttachedInfo.SearchExtendInfo",name:"search_extend_infos",id:20},{rule:"optional",type:"string",name:"guess_hash_id",id:21},{rule:"optional",type:"string",name:"clicked_recommendation_hash_id",id:22}]},{name:"SearchSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"History",id:1},{name:"Hot",id:2},{name:"Preset",id:3},{name:"Normal",id:4},{name:"DeterminerAnswer",id:5},{name:"DeterminerQuestion",id:6},{name:"DeterminerColumn",id:7},{name:"DeterminerTopic",id:8},{name:"DeterminerPersonal",id:9},{name:"Suggestion",id:10},{name:"SuggestionHistory",id:11},{name:"Correction",id:12},{name:"Entity",id:13},{name:"RelatedSearch",id:14},{name:"TopstoryHotSearch",id:15},{name:"HybridSearch",id:16},{name:"ShopSearch",id:17},{name:"RelatedShop",id:18},{name:"WantToSearch",id:19},{name:"Lottery",id:20},{name:"HotMore",id:21},{name:"KmDeterminerPersonal",id:22},{name:"KmPreset",id:23},{name:"KmEntity",id:24},{name:"KmHot",id:25},{name:"KmRelatedSearch",id:26},{name:"KmSuggestionHistory",id:27},{name:"KmHistory",id:28},{name:"KmSuggestion",id:29},{name:"KmNormal",id:30},{name:"ClickedRecommendation",id:31},{name:"Guess",id:32},{name:"RelatedItem",id:33},{name:"Billboard",id:34},{name:"TopicList",id:35},{name:"Sem",id:36},{name:"Growth",id:37}]}]},{name:"SearchMode",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Magi",id:2}]}]},{name:"StatusInfo",fields:[{rule:"optional",type:"StatusType",name:"type",id:1},{rule:"optional",type:"StatusResult.Type",name:"result",id:2},{rule:"optional",type:"string",name:"error_message",id:3,options:{deprecated:!0}},{rule:"optional",type:"ViewInfo",name:"event",id:4},{rule:"repeated",type:"string",name:"error_msg",id:5},{rule:"optional",type:"int64",name:"duration",id:6}],enums:[{name:"StatusType",values:[{name:"Unknown",id:0},{name:"End",id:1}]}]},{name:"ModuleInfo",fields:[{rule:"optional",type:"CardInfo",name:"card",id:1},{rule:"optional",type:"ListInfo",name:"list",id:2},{rule:"optional",type:"AttachedInfo",name:"attach",id:3},{rule:"optional",type:"string",name:"attached_info_bytes",id:4}]},{name:"CardInfo",fields:[{rule:"optional",type:"Type",name:"card_type",id:1},{rule:"repeated",type:"ContentInfo",name:"content",id:2},{rule:"optional",type:"FeedSource",name:"feed_source",id:3},{rule:"optional",type:"string",name:"feed_id",id:4},{rule:"optional",type:"bool",name:"has_image",id:5,options:{default:!1}},{rule:"optional",type:"bool",name:"has_video",id:6,options:{default:!1}},{rule:"optional",type:"bool",name:"is_publish_home",id:7,options:{default:!1}},{rule:"optional",type:"bool",name:"has_text",id:8,options:{default:!1}},{rule:"optional",type:"int32",name:"index",id:9}],messages:[{name:"FeedSource",fields:[{rule:"repeated",type:"string",name:"actor_id",id:1},{rule:"optional",type:"ContentType.Type",name:"actor_type",id:2},{rule:"optional",type:"ActionType",name:"action_type",id:3},{rule:"optional",type:"int64",name:"action_timestamp",id:4},{rule:"repeated",type:"string",name:"actor_token",id:5},{rule:"repeated",type:"string",name:"actor_member_hash_id",id:6}],enums:[{name:"ActionType",values:[{name:"Unknown",id:0},{name:"Follow",id:1},{name:"Publish",id:2},{name:"Upvote",id:3},{name:"Answer",id:4},{name:"Recommend",id:5},{name:"Join",id:6},{name:"Collect",id:7}]}]}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Content",id:1},{name:"PopularTopics",id:2},{name:"SuggestedTopics",id:3},{name:"ValidationReminder",id:4},{name:"AvatarReminder",id:5},{name:"HeadlineReminder",id:6},{name:"Feed",id:7},{name:"SuggestedUsers",id:8},{name:"LiveBanner",id:9},{name:"SuggestedQuestions",id:10},{name:"FirstLevelComment",id:11},{name:"SecondLevelComment",id:12}]}]},{name:"ListSection",fields:[{rule:"optional",type:"ContentType.Type",name:"type",id:1},{rule:"optional",type:"string",name:"name",id:2},{rule:"optional",type:"int32",name:"num",id:3}]},{name:"ListInfo",fields:[{rule:"optional",type:"int32",name:"list_size",id:1},{rule:"optional",type:"int32",name:"new_item_size",id:2},{rule:"repeated",type:"CardInfo",name:"card",id:3},{rule:"repeated",type:"ListSection",name:"section",id:4},{rule:"optional",type:"string",name:"feed_id",id:5},{rule:"optional",type:"Type",name:"type",id:6}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"PopularTopics",id:1},{name:"SuggestedTopics",id:2},{name:"SuggestedUsers",id:3},{name:"LiveBanner",id:4},{name:"EBook",id:5},{name:"RemixAlbum",id:6}]}]},{name:"UrlInfo",fields:[{rule:"optional",type:"string",name:"url",id:1},{rule:"optional",type:"string",name:"anchor",id:2},{rule:"optional",type:"string",name:"scheme",id:3},{rule:"optional",type:"string",name:"host",id:4},{rule:"optional",type:"int32",name:"port",id:5},{rule:"optional",type:"string",name:"path",id:6},{rule:"optional",type:"string",name:"query",id:7},{rule:"optional",type:"string",name:"fragment",id:8}]},{name:"CaptchaInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"string",name:"id",id:2}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"English",id:1},{name:"Chinese",id:2}]}]},{name:"NotificationInfo",fields:[{rule:"optional",type:"string",name:"title",id:1},{rule:"optional",type:"string",name:"url",id:2},{rule:"optional",type:"string",name:"id",id:3},{rule:"optional",type:"int64",name:"sent_timestamp",id:4},{rule:"optional",type:"string",name:"action",id:5},{rule:"optional",type:"NotificationSource",name:"notification_source",id:6},{rule:"optional",type:"string",name:"batch_id",id:7},{rule:"optional",type:"ContentType.Type",name:"type",id:8},{rule:"optional",type:"int64",name:"server_timestamp",id:9},{rule:"optional",type:"string",name:"content",id:10},{rule:"optional",type:"string",name:"content_token",id:11},{rule:"optional",type:"bool",name:"has_image",id:12},{rule:"optional",type:"bool",name:"is_show_image",id:13}],messages:[{name:"NotificationSource",fields:[{rule:"optional",type:"ContentType.Type",name:"actor_type",id:1},{rule:"optional",type:"ActionType",name:"action_type",id:2}],enums:[{name:"ActionType",values:[{name:"Unknown",id:0},{name:"Follow",id:1},{name:"Publish",id:2},{name:"Upvote",id:3},{name:"Answer",id:4},{name:"Recommend",id:5},{name:"Message",id:6},{name:"Mention",id:7},{name:"Comment",id:8},{name:"Response",id:9},{name:"Thank",id:10},{name:"Like",id:11},{name:"Invite",id:12},{name:"Start",id:13}]}]}]},{name:"PersonalizedPushFailedReason",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Dup",id:1},{name:"Freq",id:2},{name:"NoHashId",id:3},{name:"None",id:4},{name:"HasRead",id:5},{name:"Invalid",id:6},{name:"Disturb",id:7}]}]},{name:"PersonalizedPushLog",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"int64",name:"member_id",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"ContentType.Type",name:"content_type",id:4},{rule:"optional",type:"string",name:"content_title",id:5},{rule:"optional",type:"string",name:"push_title",id:6},{rule:"optional",type:"int64",name:"expected_push_time",id:7},{rule:"optional",type:"int64",name:"actual_push_time",id:8},{rule:"optional",type:"int32",name:"suc_member_count",id:9},{rule:"optional",type:"int32",name:"suc_device_count",id:10},{rule:"optional",type:"PersonalizedPushFailedReason.Type",name:"failed_reason",id:11},{rule:"optional",type:"int64",name:"push_delay_time",id:12},{rule:"optional",type:"string",name:"content_token",id:13},{rule:"optional",type:"float",name:"rating",id:14}]},{name:"ZaLog",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"ZaLogEntry",id:1},{name:"ZaLogBatchEntry",id:2}]}]},{name:"LogServerError",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"GZipDecompress",id:1},{name:"ProtobufDecode",id:2}]}]},{name:"ZaErrorInfo",fields:[{rule:"optional",type:"ZaLog.Type",name:"log_type",id:1},{rule:"optional",type:"LogServerError.Type",name:"error_type",id:2},{rule:"optional",type:"string",name:"error_msg",id:3},{rule:"optional",type:"int32",name:"batch_size",id:4}]},{name:"ButtonInfo",fields:[{rule:"optional",type:"string",name:"text",id:1}]},{name:"CurrencyType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"CNY",id:1},{name:"USD",id:2},{name:"EUR",id:3},{name:"JPY",id:4},{name:"BEAN",id:5}]}]},{name:"AdInfo",fields:[{rule:"optional",type:"int64",name:"ad_id",id:1},{rule:"optional",type:"int64",name:"ad_zone_id",id:2},{rule:"optional",type:"double",name:"ad_relevancy",id:3},{rule:"optional",type:"string",name:"category",id:4},{rule:"optional",type:"double",name:"cpm",id:5},{rule:"optional",type:"string",name:"cpm_encrypt",id:6},{rule:"optional",type:"string",name:"sign",id:7},{rule:"optional",type:"bool",name:"is_valid",id:8},{rule:"optional",type:"CurrencyType.Type",name:"currency_type",id:9},{rule:"optional",type:"string",name:"version",id:10},{rule:"optional",type:"float",name:"timestamp",id:11},{rule:"optional",type:"int64",name:"creative_id",id:12}]},{name:"TaskIDInfo",fields:[{rule:"optional",type:"string",name:"ad_task_id",id:1}]},{name:"ShareInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"string",name:"package_name",id:2},{rule:"optional",type:"string",name:"share_id",id:3},{rule:"optional",type:"string",name:"share_uid",id:4},{rule:"optional",type:"string",name:"share_second_uid",id:5},{rule:"optional",type:"string",name:"share_unionid",id:6},{rule:"optional",type:"string",name:"open_unionid",id:7},{rule:"optional",type:"string",name:"share_source",id:8}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Wechat",id:1},{name:"Weibo",id:2},{name:"Dudu",id:3},{name:"QQ",id:4},{name:"WechatSession",id:5},{name:"WechatTimeline",id:6},{name:"Evernote",id:7},{name:"TencentQZone",id:8},{name:"Pocket",id:9},{name:"Momo",id:10},{name:"Youdao",id:11},{name:"Twitter",id:12},{name:"ZhihuMessage",id:13},{name:"Email",id:14},{name:"Message",id:15},{name:"CopyLink",id:16},{name:"QQComputer",id:17},{name:"QQCollect",id:18},{name:"WechatCollect",id:19},{name:"ZhihuHome",id:20},{name:"More",id:21},{name:"Pin",id:22},{name:"ImagePreview",id:23},{name:"SavePhoto",id:24},{name:"Browser",id:25}]}]},{name:"ExperimentFeature",fields:[{rule:"optional",type:"string",name:"name",id:1},{rule:"optional",type:"string",name:"value",id:2}]},{name:"ExperimentInfo",fields:[{rule:"repeated",type:"ExperimentFeature",name:"feature",id:1},{rule:"repeated",type:"string",name:"feature_name",id:2},{rule:"repeated",type:"string",name:"feature_value",id:3},{rule:"repeated",type:"string",name:"feature_kv",id:4}]},{name:"AbExperiment",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"bool",name:"include_trigger_info",id:2},{rule:"optional",type:"bool",name:"is_triggered",id:3}]},{name:"AbInfo",fields:[{rule:"repeated",type:"AbExperiment",name:"experiment",id:1},{rule:"repeated",type:"string",name:"id",id:2}]},{name:"ExpLoadInfo",fields:[{rule:"optional",type:"string",name:"distribute_uuid",id:1},{rule:"optional",type:"string",name:"load_uuid",id:2},{rule:"repeated",type:"string",name:"exp_id",id:3}]},{name:"ExpImpressionInfo",fields:[{rule:"optional",type:"string",name:"load_uuid",id:1},{rule:"optional",type:"string",name:"ctx_uuid",id:2},{rule:"optional",type:"string",name:"exp_id",id:3}]},{name:"ExpDetailInfo",fields:[{rule:"optional",type:"bool",name:"is_static",id:1},{rule:"optional",type:"string",name:"static_config_name",id:2}]},{name:"ExpInfo",fields:[{rule:"optional",type:"ExpEventType",name:"type",id:1},{rule:"optional",type:"ExpLoadInfo",name:"load",id:2},{rule:"optional",type:"ExpImpressionInfo",name:"impression",id:3},{rule:"optional",type:"ExpDetailInfo",name:"detail",id:4}],enums:[{name:"ExpEventType",values:[{name:"Unknown",id:0},{name:"ExpLoad",id:1},{name:"ExpImpression",id:2}]}]},{name:"SubVerticalType",fields:[{rule:"optional",type:"int32",name:"useless",id:1}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"BookHome",id:1},{name:"BookRack",id:2},{name:"BookDetail",id:3},{name:"BookReader",id:4},{name:"BookPayedList",id:5},{name:"BookList",id:6},{name:"BookCategory",id:7},{name:"BookHelp",id:8},{name:"DbFeed",id:9},{name:"DbDetail",id:10},{name:"DbRecommend",id:11},{name:"DbProfile",id:12},{name:"DbHot",id:13},{name:"DbEdit",id:14},{name:"DbMsgList",id:15},{name:"DbMsgAggregation",id:16},{name:"DbCommentDetail",id:17},{name:"DbPaper",id:18},{name:"DbTopic",id:19},{name:"DbMsgCommentDetail",id:20},{name:"MetaDiscussion",id:21},{name:"MetaAllQuestion",id:22},{name:"MetaEssence",id:23},{name:"MetaInfo",id:24},{name:"MetaMedia",id:25},{name:"MetaTop",id:26},{name:"VideoPlayer",id:27},{name:"VideoList",id:28},{name:"VideoRecommendation",id:29},{name:"MetaIndex",id:30},{name:"AudioBook",id:31},{name:"TrialReadFinish",id:32}]}]},{name:"VerticalInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"Type",name:"referrer_type",id:2},{rule:"optional",type:"string",name:"referrer_host",id:3},{rule:"optional",type:"SubVerticalType",name:"sub_vertical_type",id:4,options:{deprecated:!0}},{rule:"optional",type:"SubVerticalType.Type",name:"sub_type",id:5},{rule:"optional",type:"string",name:"browser_referrer_name",id:6}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Home",id:1},{name:"Topic",id:2},{name:"Answer",id:3},{name:"Question",id:4},{name:"RoundTable",id:5},{name:"Explore",id:6},{name:"User",id:7},{name:"Column",id:8},{name:"Post",id:9},{name:"Live",id:10},{name:"Publication",id:11},{name:"Message",id:12},{name:"Collection",id:13},{name:"Search",id:14},{name:"Org",id:15},{name:"Comment",id:16},{name:"Guide",id:17},{name:"Edit",id:18},{name:"Setting",id:19},{name:"Notification",id:20},{name:"ImageViewer",id:21},{name:"LinkClick",id:22},{name:"Promotion",id:23},{name:"AdLaunching",id:24},{name:"EBook",id:25},{name:"Other",id:26},{name:"Remix",id:27},{name:"Pin",id:28},{name:"Wallet",id:29},{name:"Market",id:30},{name:"Video",id:31},{name:"Db",id:32},{name:"Recommend",id:33},{name:"Follow",id:34},{name:"Billboard",id:35},{name:"EditAnswer",id:36},{name:"EditPost",id:37},{name:"VideoTopicChoice",id:38},{name:"VideoTopicNewest",id:39},{name:"FeedVideo",id:40},{name:"Svip",id:41},{name:"Videox",id:42},{name:"Drama",id:43},{name:"Club",id:44},{name:"Zvideo",id:45},{name:"Special",id:46},{name:"HotReport",id:47}]}]},{name:"ReportInfo",fields:[{rule:"optional",type:"int32",name:"id",id:1},{rule:"optional",type:"string",name:"type",id:2}]},{name:"Attribute",fields:[{rule:"optional",type:"string",name:"key",id:1},{rule:"optional",type:"string",name:"value",id:2}]},{name:"MonitorEventInfo",fields:[{rule:"optional",type:"string",name:"type",id:1,options:{deprecated:!0}},{rule:"optional",type:"string",name:"name",id:2},{rule:"repeated",type:"Attribute",name:"attribute",id:3},{rule:"optional",type:"EventType",name:"event_type",id:4}],enums:[{name:"EventType",values:[{name:"Unknown",id:0},{name:"LogicError",id:1},{name:"RuntimeError",id:2},{name:"SecurityError",id:3}]}]},{name:"WebPerformanceInfo",fields:[{rule:"optional",type:"int32",name:"navigation_start",id:1},{rule:"optional",type:"int32",name:"unload_event_start",id:2},{rule:"optional",type:"int32",name:"unload_event_end",id:3},{rule:"optional",type:"int32",name:"redirect_start",id:4},{rule:"optional",type:"int32",name:"redirect_end",id:5},{rule:"optional",type:"int32",name:"fetch_start",id:6},{rule:"optional",type:"int32",name:"domain_lookup_start",id:7},{rule:"optional",type:"int32",name:"domain_lookup_end",id:8},{rule:"optional",type:"int32",name:"connect_start",id:9},{rule:"optional",type:"int32",name:"connect_end",id:10},{rule:"optional",type:"int32",name:"secure_connection_start",id:11},{rule:"optional",type:"int32",name:"request_start",id:12},{rule:"optional",type:"int32",name:"response_start",id:13},{rule:"optional",type:"int32",name:"response_end",id:14},{rule:"optional",type:"int32",name:"dom_loading",id:15},{rule:"optional",type:"int32",name:"dom_interactive",id:16},{rule:"optional",type:"int32",name:"dom_content_loaded_event_start",id:17},{rule:"optional",type:"int32",name:"dom_content_loaded_event_end",id:18},{rule:"optional",type:"int32",name:"dom_complete",id:19},{rule:"optional",type:"int32",name:"load_event_start",id:20},{rule:"optional",type:"int32",name:"load_event_end",id:21},{rule:"optional",type:"int32",name:"first_paint",id:22},{rule:"optional",type:"int32",name:"first_contentful_paint",id:23},{rule:"optional",type:"int32",name:"x_app_inited",id:24},{rule:"optional",type:"int32",name:"x_css_loaded",id:25},{rule:"optional",type:"int32",name:"x_first_animation_frame",id:26}]},{name:"AppPerformanceSystemInfo",fields:[{rule:"optional",type:"float",name:"cpu_usage",id:1},{rule:"optional",type:"float",name:"memory_usage",id:2},{rule:"optional",type:"float",name:"electric_usage",id:3},{rule:"optional",type:"string",name:"performance_type",id:4}]},{name:"AppPerformanceInfo",fields:[{rule:"optional",type:"int32",name:"render_start",id:1},{rule:"optional",type:"int32",name:"render_complete",id:2},{rule:"optional",type:"int64",name:"sent_bytes",id:3},{rule:"optional",type:"int64",name:"received_bytes",id:4},{rule:"optional",type:"string",name:"performance_type",id:5}]},{name:"AppPerformanceActionInfo",fields:[{rule:"optional",type:"ActionType",name:"action_type",id:1},{rule:"optional",type:"string",name:"action_name",id:2},{rule:"optional",type:"int64",name:"start_timestamp",id:3},{rule:"optional",type:"int64",name:"end_timestamp",id:4}],enums:[{name:"ActionType",values:[{name:"Unknown",id:0},{name:"NetworkRequest",id:1},{name:"PageRendering",id:2}]}]},{name:"AppPerformancePageLoadInfo",fields:[{rule:"repeated",type:"AppPerformanceActionInfo",name:"info",id:1}]},{name:"AppPerformanceBlockInfo",fields:[{rule:"optional",type:"AppPerformanceSystemInfo",name:"system",id:1},{rule:"optional",type:"string",name:"stack",id:2},{rule:"optional",type:"int32",name:"frame_time",id:3}]},{name:"HybridContext",fields:[{rule:"optional",type:"string",name:"app_id",id:1},{rule:"optional",type:"string",name:"frame_id",id:2},{rule:"optional",type:"string",name:"referer",id:3},{rule:"optional",type:"string",name:"utm",id:4},{rule:"optional",type:"string",name:"launch_url",id:5}]},{name:"HybridLaunchTimeInfo",fields:[{rule:"optional",type:"HybridContext",name:"context",id:1},{rule:"optional",type:"int64",name:"init_timestamp",id:2},{rule:"optional",type:"int64",name:"view_did_appear",id:3},{rule:"optional",type:"int64",name:"did_start_provisional_navigation",id:4},{rule:"optional",type:"int64",name:"did_commit_navigation",id:5},{rule:"optional",type:"int64",name:"did_finish_navigation",id:6},{rule:"optional",type:"int64",name:"first_meaningful_paint",id:7},{rule:"optional",type:"int64",name:"first_resource_return",id:8},{rule:"optional",type:"int64",name:"web_page_ready",id:9}]},{name:"HybridErrorInfo",fields:[{rule:"optional",type:"HybridContext",name:"context",id:1},{rule:"optional",type:"ErrorType",name:"error_type",id:2},{rule:"optional",type:"string",name:"error_code",id:3},{rule:"optional",type:"string",name:"error_description",id:4}],enums:[{name:"ErrorType",values:[{name:"EvaluateJSMessage",id:0},{name:"DidFailNavigation",id:1},{name:"DidFailProvisionalNavigation",id:2},{name:"WebViewWebContentProcessDidTerminate",id:3},{name:"DecidePolicyForNavigationResponse",id:4}]}]},{name:"HybridJSBridgeTimeInfo",fields:[{rule:"optional",type:"HybridContext",name:"context",id:1},{rule:"optional",type:"JSType",name:"type",id:2},{rule:"optional",type:"int64",name:"start_timestamp",id:3},{rule:"optional",type:"int64",name:"end_timestamp",id:4},{rule:"optional",type:"string",name:"module",id:5},{rule:"optional",type:"string",name:"action",id:6}],enums:[{name:"JSType",values:[{name:"HybridWebCallNativeTime",id:0},{name:"HybridNativeCallWebTime",id:1}]}]},{name:"HybridBigResourceInfo",fields:[{rule:"optional",type:"HybridContext",name:"context",id:1},{rule:"optional",type:"string",name:"mime_type",id:2},{rule:"optional",type:"int64",name:"resource_size",id:3},{rule:"optional",type:"int64",name:"cost_time",id:4},{rule:"optional",type:"string",name:"url",id:5}]},{name:"HybridPageShowTimeInfo",fields:[{rule:"optional",type:"int64",name:"start_timestamp",id:1},{rule:"optional",type:"int64",name:"end_timestamp",id:2},{rule:"optional",type:"bool",name:"is_from_cache",id:3},{rule:"optional",type:"HybridContext",name:"context",id:4},{rule:"optional",type:"string",name:"fake_url",id:5}]},{name:"HybridInfo",fields:[{rule:"optional",type:"HybridLaunchTimeInfo",name:"lauch",id:1},{rule:"optional",type:"HybridErrorInfo",name:"error",id:2},{rule:"optional",type:"HybridJSBridgeTimeInfo",name:"js_time",id:3},{rule:"optional",type:"HybridPageShowTimeInfo",name:"page_show_time",id:4},{rule:"optional",type:"string",name:"monitor_hybrid_type",id:5},{rule:"optional",type:"HybridBigResourceInfo",name:"big_resource",id:6}]},{name:"LiveStreamingProduct",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Live",id:1}]}]},{name:"LiveStreamingType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Push",id:1},{name:"Pull",id:2},{name:"VideOnDemand",id:3}]}]},{name:"LiveStreamingProtocol",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"RTMP",id:1},{name:"FLV",id:2},{name:"HLS",id:3}]}]},{name:"LiveStreamingNetStatus",fields:[{rule:"optional",type:"int64",name:"video_fps",id:1},{rule:"optional",type:"int64",name:"net_speed",id:2},{rule:"optional",type:"int64",name:"net_jitter",id:3},{rule:"optional",type:"int64",name:"video_bitrate",id:4},{rule:"optional",type:"int64",name:"audio_bitrate",id:5},{rule:"optional",type:"int64",name:"cache_size",id:6}]},{name:"LiveStreamingError",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Success",id:1},{name:"PlayWarningVideoDecodeFail",id:2},{name:"PlayWarningAudioDecodeFail",id:3},{name:"PlayWarningReconnect",id:4},{name:"PlayWarningRecvDataLag",id:5},{name:"PlayWarningVideoPlayLag",id:6},{name:"PlayWarningHWAccelerationFail",id:7},{name:"PlayWarningVideoDiscontinuity",id:8},{name:"PlayWarningDNSFail",id:9},{name:"PlayWarningSeverConnFail",id:10},{name:"PlayWarningShakeFail",id:11},{name:"PlayErrNetDisconnect",id:12}]}]},{name:"LiveStreamingBaseInfo",fields:[{rule:"optional",type:"LiveStreamingProduct.Type",name:"live_streaming_product_type",id:1},{rule:"optional",type:"string",name:"live_streaming_id",id:2},{rule:"optional",type:"LiveStreamingType.Type",name:"live_streaming_type",id:3},{rule:"optional",type:"LiveStreamingProtocol.Type",name:"live_streaming_protocol",id:4}]},{name:"LiveStreamingInfo",fields:[{rule:"optional",type:"LiveStreamingBaseInfo",name:"live_streaming_base_info",id:1},{rule:"optional",type:"LiveStreamingNetStatus",name:"live_streaming_net_status",id:2},{rule:"optional",type:"LiveStreamingError.Type",name:"live_streaming_error",id:3}]},{name:"AudioProduction",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Live",id:1},{name:"Remix",id:2},{name:"Mixtape",id:3},{name:"LiveAudition",id:4},{name:"Instabook",id:5},{name:"EbookAudio",id:6},{name:"AudioBook",id:7},{name:"LiveCollection",id:8}]}]},{name:"AudioSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"LocalFile",id:1},{name:"Streaming",id:2}]}]},{name:"AudioStatus",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Success",id:1},{name:"DownloadError",id:2},{name:"VerifyError",id:3},{name:"LoadError",id:4},{name:"PlayError",id:5},{name:"BlockError",id:6},{name:"Fail",id:7}]}]},{name:"AudioInfo",fields:[{rule:"optional",type:"string",name:"audio_id",id:1},{rule:"optional",type:"string",name:"audio_url",id:2},{rule:"optional",type:"AudioStatus.Type",name:"status",id:3},{rule:"optional",type:"AudioSource.Type",name:"source",id:4},{rule:"optional",type:"AudioProduction.Type",name:"production_id",id:5},{rule:"optional",type:"int64",name:"load_latency",id:6},{rule:"optional",type:"string",name:"error_msg",id:7},{rule:"optional",type:"string",name:"error_code",id:8}]},{name:"APMProcessBreak",fields:[{rule:"optional",type:"string",name:"key",id:1},{rule:"optional",type:"double",name:"value",id:2}]},{name:"APMProcessInfo",fields:[{rule:"optional",type:"string",name:"process_id",id:1},{rule:"optional",type:"string",name:"process_name",id:2},{rule:"optional",type:"double",name:"start_timestamp",id:3},{rule:"optional",type:"double",name:"end_timestamp",id:4},{rule:"optional",type:"double",name:"duration",id:5},{rule:"repeated",type:"APMProcessBreak",name:"break",id:6},{rule:"repeated",type:"string",name:"network_uuid",id:7},{rule:"repeated",type:"string",name:"exception_uuid",id:8},{rule:"repeated",type:"Attribute",name:"context",id:9},{rule:"optional",type:"bool",name:"is_success",id:10}]},{name:"APMNetworkInfo",fields:[{rule:"optional",type:"string",name:"network_uuid",id:1},{rule:"optional",type:"string",name:"url",id:2},{rule:"optional",type:"double",name:"timeout_interval",id:3},{rule:"optional",type:"double",name:"start_timestamp",id:4},{rule:"optional",type:"double",name:"end_timestamp",id:5},{rule:"optional",type:"double",name:"task_duration",id:6},{rule:"optional",type:"int64",name:"redirect_count",id:7},{rule:"optional",type:"string",name:"network_protocol_name",id:8},{rule:"optional",type:"bool",name:"is_proxy_connection",id:9},{rule:"optional",type:"bool",name:"is_reused_connection",id:10},{rule:"optional",type:"string",name:"resource_fetch_type",id:11},{rule:"optional",type:"double",name:"fetch_start",id:12},{rule:"optional",type:"double",name:"domain_lookup_start",id:13},{rule:"optional",type:"double",name:"domain_lookup_end",id:14},{rule:"optional",type:"double",name:"connect_start",id:15},{rule:"optional",type:"double",name:"secure_connection_start",id:16},{rule:"optional",type:"double",name:"connect_end",id:17},{rule:"optional",type:"double",name:"request_start",id:18},{rule:"optional",type:"double",name:"request_end",id:19},{rule:"optional",type:"double",name:"response_start",id:20},{rule:"optional",type:"double",name:"response_end",id:21},{rule:"optional",type:"string",name:"request_method",id:22},{rule:"optional",type:"int64",name:"status_code",id:23},{rule:"optional",type:"int64",name:"expected_content_length",id:24},{rule:"optional",type:"string",name:"error_code",id:25},{rule:"optional",type:"string",name:"error_description",id:26},{rule:"optional",type:"string",name:"ip_address",id:27},{rule:"optional",type:"double",name:"backend_response",id:28},{rule:"optional",type:"string",name:"x_cdn_provider",id:29},{rule:"optional",type:"double",name:"lb_timing",id:30},{rule:"optional",type:"double",name:"edge_timing",id:31},{rule:"optional",type:"string",name:"idc_id",id:32},{rule:"optional",type:"string",name:"dns_source",id:33},{rule:"repeated",type:"ResponseHeaderInfo",name:"response_header",id:34},{rule:"optional",type:"string",name:"health_level",id:35},{rule:"optional",type:"NetHealth.Type",name:"net_health",id:36},{rule:"optional",type:"int32",name:"retry_count",id:37}],messages:[{name:"ResponseHeaderInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"UDID",id:0}]}]}]},{name:"NetHealth",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Unavailable",id:1},{name:"Bad",id:2},{name:"Medium",id:3},{name:"Good",id:4}]}]},{name:"APMExceptionInfo",fields:[{rule:"optional",type:"string",name:"exception_uuid",id:1},{rule:"optional",type:"string",name:"exception_message",id:2},{rule:"optional",type:"ExceptionType",name:"type",id:3},{rule:"optional",type:"double",name:"timestamp",id:4}],enums:[{name:"ExceptionType",values:[{name:"Unknown",id:0},{name:"Assert",id:1},{name:"UIAccessNotInMainThread",id:2},{name:"MemoryWarning",id:3},{name:"AppException",id:4}]}]},{name:"APMNetworkTraffic",fields:[{rule:"optional",type:"int64",name:"pv_count",id:1},{rule:"optional",type:"double",name:"total_traffic",id:2},{rule:"optional",type:"double",name:"wifi_net_traffic",id:3},{rule:"optional",type:"double",name:"mobile_net_traffic",id:4},{rule:"optional",type:"double",name:"category_api_traffic",id:5},{rule:"optional",type:"double",name:"category_video_traffic",id:6},{rule:"optional",type:"double",name:"category_audio_traffic",id:7},{rule:"optional",type:"double",name:"category_img_traffic",id:8},{rule:"optional",type:"double",name:"os_total_traffic",id:9},{rule:"optional",type:"double",name:"os_wifi_traffic",id:10},{rule:"optional",type:"double",name:"os_mobile_traffic",id:11}]},{name:"APMInfo",fields:[{rule:"optional",type:"APMProcessInfo",name:"process",id:1},{rule:"optional",type:"APMNetworkInfo",name:"network",id:2},{rule:"optional",type:"APMExceptionInfo",name:"exception",id:3},{rule:"optional",type:"APMNetworkTraffic",name:"network_traffic",id:4}]},{name:"MonitorInfo",fields:[{rule:"optional",type:"RequestInfo",name:"request",id:1},{rule:"optional",type:"Type",name:"type",id:2},{rule:"optional",type:"MonitorEventInfo",name:"event",id:3},{rule:"optional",type:"WebPerformanceInfo",name:"web_performance",id:4},{rule:"optional",type:"AppPerformanceInfo",name:"app_performance",id:5},{rule:"optional",type:"ServiceInfo",name:"app_performance_traffic",id:6,options:{deprecated:!0}},{rule:"optional",type:"AppPerformancePageLoadInfo",name:"app_performance_load",id:7},{rule:"optional",type:"AppPerformanceBlockInfo",name:"app_performance_block",id:8},{rule:"optional",type:"AppPerformanceSystemInfo",name:"system",id:9},{rule:"optional",type:"HybridInfo",name:"hybrid",id:10},{rule:"optional",type:"ImgResourceErrorInfo",name:"imgResourceErrorInfo",id:11},{rule:"optional",type:"AudioInfo",name:"audio",id:12},{rule:"optional",type:"LiveStreamingInfo",name:"live_streaming",id:13},{rule:"optional",type:"APMInfo",name:"apm",id:14},{rule:"optional",type:"MonitorInfoIndexIntegration",name:"miii",id:15},{rule:"optional",type:"JsonLog",name:"json_log",id:16},{rule:"optional",type:"ImgUpload",name:"img_upload",id:17},{rule:"optional",type:"HttpDnsInfo",name:"http_dns",id:18}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Page",id:1},{name:"Ajax",id:2},{name:"Event",id:3}]}]},{name:"ImgUpload",fields:[{rule:"optional",type:"int64",name:"start_time",id:1},{rule:"optional",type:"int64",name:"end_time",id:2},{rule:"optional",type:"int64",name:"length",id:3},{rule:"optional",type:"int32",name:"error_code",id:4},{rule:"optional",type:"string",name:"error_description",id:5},{rule:"optional",type:"UploadResultType",name:"upload_result_type",id:6},{rule:"optional",type:"string",name:"mime_type",id:7},{rule:"optional",type:"string",name:"upload_url",id:8},{rule:"optional",type:"int32",name:"media_width",id:9},{rule:"optional",type:"int32",name:"media_height",id:10},{rule:"optional",type:"bool",name:"is_revolve",id:11},{rule:"optional",type:"int64",name:"media_id",id:12},{rule:"optional",type:"string",name:"upload_source",id:13},{rule:"optional",type:"string",name:"media_token",id:14},{rule:"optional",type:"string",name:"compress_status",id:15},{rule:"optional",type:"int64",name:"compress_duration",id:16}],enums:[{name:"UploadResultType",values:[{name:"Error",id:0},{name:"Success",id:1},{name:"Cancel",id:2}]}]},{name:"JsonLog",fields:[{rule:"optional",type:"string",name:"type",id:1},{rule:"optional",type:"string",name:"json",id:2}]},{name:"MonitorInfoIndexIntegration",fields:[{rule:"optional",type:"float",name:"hybrid_js_time",id:1},{rule:"optional",type:"int32",name:"img_count",id:2},{rule:"optional",type:"float",name:"hybrid_finish_navigation",id:3},{rule:"optional",type:"float",name:"hybrid_start_provisional_navgation",id:4},{rule:"optional",type:"float",name:"hybrid_did_appear",id:5},{rule:"optional",type:"float",name:"hybrid_commit_navigation",id:6},{rule:"optional",type:"float",name:"hybrid_first_meaning_ful_paint",id:7},{rule:"optional",type:"float",name:"cpu",id:8},{rule:"optional",type:"float",name:"mem",id:9},{rule:"optional",type:"float",name:"ele",id:10},{rule:"optional",type:"float",name:"traffic_sent",id:11},{rule:"optional",type:"float",name:"traffic_recived",id:12},{rule:"optional",type:"float",name:"appview_render",id:13},{rule:"optional",type:"float",name:"response",id:14},{rule:"optional",type:"float",name:"launch",id:15},{rule:"optional",type:"float",name:"hybrid_page_show",id:16},{rule:"optional",type:"float",name:"img_load_duration",id:17},{rule:"optional",type:"int64",name:"img_length",id:18}]},{name:"UTMInfo",fields:[{rule:"optional",type:"string",name:"medium",id:1},{rule:"optional",type:"string",name:"source",id:2},{rule:"optional",type:"string",name:"campaign",id:3},{rule:"optional",type:"string",name:"content",id:4},{rule:"repeated",type:"string",name:"term",id:5},{rule:"optional",type:"string",name:"division",id:6},{rule:"optional",type:"string",name:"raw_term",id:7},{rule:"optional",type:"string",name:"id",id:8},{rule:"optional",type:"string",name:"member_hash_id",id:9},{rule:"optional",type:"string",name:"share_id",id:10},{rule:"optional",type:"string",name:"app_name",id:11}]},{name:"ReadInfo",fields:[{rule:"optional",type:"int32",name:"total_pages",id:1},{rule:"optional",type:"int32",name:"current_pages",id:2},{rule:"optional",type:"int32",name:"id",id:3},{rule:"optional",type:"Type",name:"type",id:4},{rule:"optional",type:"int64",name:"duration",id:5},{rule:"optional",type:"string",name:"font_type",id:6},{rule:"optional",type:"string",name:"font_size",id:7},{rule:"optional",type:"string",name:"line_spacing",id:8},{rule:"optional",type:"string",name:"background",id:9},{rule:"optional",type:"int32",name:"read_chapters",id:10},{rule:"optional",type:"int32",name:"read_characters",id:11},{rule:"optional",type:"bool",name:"is_own",id:12},{rule:"optional",type:"bool",name:"is_show_others_pin",id:13}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"EBook",id:1}]}]},{name:"FeedAttachedInfo",fields:[{rule:"optional",type:"int64",name:"request_id",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"int64",name:"publish_timestamp",id:4},{rule:"optional",type:"int32",name:"voteup_num",id:5},{rule:"optional",type:"int32",name:"comment_num",id:6},{rule:"optional",type:"int32",name:"follower_num",id:7},{rule:"optional",type:"int32",name:"feed_index",id:8},{rule:"repeated",type:"SourceInfo",name:"sources",id:9},{rule:"optional",type:"string",name:"feed_type",id:10},{rule:"optional",type:"string",name:"parent_id",id:11},{rule:"optional",type:"string",name:"session_token",id:12},{rule:"optional",type:"int64",name:"video_id",id:13},{rule:"optional",type:"string",name:"content_token",id:14},{rule:"optional",type:"FeedGenerator.Type",name:"generator_type",id:15},{rule:"optional",type:"string",name:"image_url",id:16},{rule:"optional",type:"string",name:"parent_token",id:17},{rule:"optional",type:"bool",name:"is_ad",id:18,options:{default:!1}},{rule:"optional",type:"AdInfo",name:"ad_info",id:19},{rule:"repeated",type:"ItemInfo",name:"children",id:20},{rule:"optional",type:"string",name:"fake_url",id:21},{rule:"optional",type:"string",name:"container_type",id:22},{rule:"optional",type:"string",name:"tab_type",id:23},{rule:"optional",type:"string",name:"follow_member_hash_id",id:24},{rule:"optional",type:"string",name:"link_url",id:25},{rule:"optional",type:"string",name:"annotation_info",id:26},{rule:"optional",type:"string",name:"ad_session_id",id:27},{rule:"optional",type:"string",name:"rec_reason",id:28},{rule:"optional",type:"string",name:"parent_content_sub_type",id:29},{rule:"repeated",type:"FeedExtendedInfo",name:"feed_extended_infos",id:30},{rule:"optional",type:"CommonCardStyle",name:"common_card_style",id:31},{rule:"optional",type:"string",name:"promotion_info",id:32},{rule:"optional",type:"int64",name:"feed_server_timestamp",id:33},{rule:"optional",type:"string",name:"creator_member_hash_id",id:34},{rule:"optional",type:"Signal",name:"signal",id:35},{rule:"optional",type:"ZVideoTabCard.CardType",name:"card_type",id:36},{rule:"optional",type:"int64",name:"section_id",id:37},{rule:"optional",type:"string",name:"operation_module_type",id:38},{rule:"optional",type:"string",name:"billboard_type",id:39},{rule:"optional",type:"ContentAttachment",name:"contentAttachment",id:40}],messages:[{name:"FeedGenerator",fields:[],enums:[{name:"Type",values:[{name:"Topstory",id:0},{name:"Feedre",id:1},{name:"Keyword",id:2},{name:"Customized",id:3},{name:"Promo",id:4},{name:"ActionCard",id:5},{name:"LinkCard",id:6},{name:"Tagore",id:7},{name:"HighQuality",id:8},{name:"ItemCF",id:9},{name:"NewBieDetect",id:10},{name:"GoodLinkCard",id:11},{name:"TopicExtend",id:12},{name:"TagoreExtend",id:13},{name:"FeedreTopic",id:14},{name:"Competition",id:15},{name:"FeedreRTTopic",id:16},{name:"TagBasedLongTerm",id:17},{name:"TagBasedMediumTerm",id:18},{name:"TagBasedShortTerm",id:19},{name:"TagBasedFollowTopic",id:20},{name:"TagBasedRealTime",id:21},{name:"MemberFreeContent",id:22},{name:"FollowQuestion",id:23},{name:"GuideFollow",id:24},{name:"GuideDomain",id:25},{name:"GuideTopic",id:26},{name:"FollowUser",id:27},{name:"CoreInterest",id:28},{name:"FollowColumn",id:29},{name:"FollowFavorites",id:30},{name:"Location",id:31},{name:"Contextual",id:32},{name:"RoundTable",id:33},{name:"RecVideoTopic",id:34},{name:"Topic",id:35},{name:"FreeContent",id:36},{name:"TopicExtendExpe",id:37},{name:"TagBasedVideo",id:38},{name:"FeedreVideo",id:39},{name:"SearchQuery",id:40},{name:"ContentFree",id:41},{name:"InterestCircle",id:42},{name:"TopNews",id:43},{name:"Vertical",id:44},{name:"TailUserHot",id:45},{name:"InterestDetection",id:46},{name:"TagBasedCreate",id:47},{name:"NewbieHotWord",id:48},{name:"RaisingFollowAuthor",id:49},{name:"LatestFollowTopic",id:50},{name:"Timeliness",id:51},{name:"Scene",id:52},{name:"PaidAnswer",id:53},{name:"PaidRelatedAnswer",id:54},{name:"UserInterestDetect",id:55},{name:"NewbieHotContent",id:56},{name:"ItemCFCollect",id:57},{name:"Hot",id:58},{name:"NewbieAppInfo",id:59},{name:"ItemCFUpvote",id:60},{name:"FeedreCollect",id:61},{name:"ItemCFThank",id:62},{name:"NewbieHotSpotContent",id:63},{name:"FollowAuthor",id:64},{name:"FeedreUpvote",id:65},{name:"NewbieDevice",id:66},{name:"ItemCFShare",id:67},{name:"BaiduCategory",id:68},{name:"NewbieHotContentV2",id:69},{name:"Search",id:70},{name:"NewbieBaidu",id:71},{name:"NewbieAppCat",id:72},{name:"Freshman",id:73},{name:"FeedrePaid",id:74},{name:"PromotionExtra",id:75},{name:"NewbieLastView",id:76},{name:"EventNewbieGuide",id:77},{name:"TagBasedZVideo",id:78},{name:"UserCFClick",id:79},{name:"HotSpecial",id:80},{name:"NewbieMaterial",id:81},{name:"NewbieMaterialId",id:82},{name:"TagBasedHighQuality",id:83},{name:"NewbieSignalment",id:84},{name:"WarmUp",id:85},{name:"UserCFFollowUser",id:86},{name:"OPMPaid",id:87},{name:"FeedreNewbie",id:88},{name:"InterestAdjustmentGuide",id:89},{name:"UserCFClusterV1",id:90},{name:"UserCFClusterV2",id:91},{name:"UserCFClusterV3",id:92},{name:"ClubSource",id:93},{name:"FeedreZvideo",id:94},{name:"CategoryDrama",id:95},{name:"InterestDetect",id:96},{name:"SearchQueryClient",id:97},{name:"FeedreDSSM",id:98},{name:"FollowAuthorZvideo",id:99},{name:"ItemCFZvideo",id:100},{name:"CommonActivity",id:101},{name:"SearchQueryToQuery",id:102},{name:"ZplusHardAd",id:103},{name:"BrandCreator",id:104},{name:"NewbieInterestGuide",id:105},{name:"GoodsRealTimeTopics",id:106},{name:"CategoryBasedZvideo",id:107},{name:"ZVideoCreator",id:108},{name:"NewbieGroup",id:109},{name:"ZVideoTabOP",id:110},{name:"UserRecTopic",id:111},{name:"UserRecItemCF",id:112},{name:"UserRecHighTransfer",id:113},{name:"LongTermBasedZvideo",id:114},{name:"CoreBasedZvideo",id:115},{name:"ShortTermBasedZvideo",id:116},{name:"UserRecHisAct",id:117},{name:"UserRecLastAct",id:118},{name:"TagBasedTab",id:119},{name:"TagBasedTabTopic",id:120},{name:"TagBasedTabZvideo",id:121},{name:"TagBasedTabTopicZvideo",id:122},{name:"QuestionnaireNps",id:123},{name:"FeedreGuideTopic",id:124},{name:"MemberGuideHotword",id:125},{name:"NativeContent",id:126},{name:"QuestionAsk",id:127},{name:"UserCFZvideo",id:128},{name:"LastActZvideo",id:129},{name:"ZvideoHot",id:130},{name:"FollowUserCFZvideo",id:131},{name:"SupportContent",id:132},{name:"FeedreZvideoPool",id:133},{name:"NewbieHighUpvote",id:134},{name:"NewbieEditorRec",id:135},{name:"NewbieBrainHole",id:136},{name:"PureZipper",id:137},{name:"PureZipperFtr",id:138},{name:"PureZipperCtr",id:139},{name:"PureZipperUtr",id:140},{name:"PureZipperStr",id:141},{name:"PureZipperCotr",id:142},{name:"PureZipperCmtr",id:143},{name:"VideoAnswer",id:144},{name:"FeedreZvideoHighPool",id:145},{name:"FeedreZvideoSCreatorPool",id:146},{name:"SectionFixPool",id:147}]}]},{name:"SourceInfo",fields:[{rule:"optional",type:"string",name:"source_type",id:1},{rule:"optional",type:"string",name:"source_id",id:2},{rule:"optional",type:"int64",name:"action_timestamp",id:3},{rule:"optional",type:"bool",name:"is_followed",id:4},{rule:"optional",type:"InterestType",name:"interest_type",id:5},{rule:"optional",type:"string",name:"show_type",id:6}],enums:[{name:"InterestType",values:[{name:"Unknown",id:0},{name:"Explore",id:1},{name:"Exploit",id:2}]}]},{name:"ItemInfo",fields:[{rule:"optional",type:"string",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_id",id:2},{rule:"optional",type:"ContentType.Type",name:"enum_content_type",id:3}]},{name:"FeedExtendedInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"RerankMetrics",id:0},{name:"EventCardSource",id:1},{name:"PaidAnswer",id:2},{name:"ModuleIndex",id:3},{name:"PollId",id:4},{name:"HasDrama",id:5},{name:"DramaId",id:6},{name:"DramaStatus",id:7},{name:"BrandAd",id:8},{name:"CommercialContentPvId",id:9},{name:"FeedPvId",id:10},{name:"FeedPageNum",id:11},{name:"FeedDeliveryType",id:12},{name:"ZVideoPaid",id:13}]}]},{name:"CommonCardStyle",fields:[{rule:"required",type:"CardStyle",name:"card_style",id:1}],enums:[{name:"CardStyle",values:[{name:"BigImage",id:0},{name:"SmallImage",id:1}]}]},{name:"Signal",fields:[{rule:"optional",type:"bool",name:"is_app_list",id:1},{rule:"optional",type:"bool",name:"is_device_model",id:2},{rule:"optional",type:"bool",name:"is_location",id:3},{rule:"optional",type:"bool",name:"is_follow_topic",id:4},{rule:"optional",type:"bool",name:"is_channel",id:5},{rule:"optional",type:"bool",name:"is_material_answer",id:6},{rule:"optional",type:"bool",name:"is_material_topic",id:7},{rule:"optional",type:"bool",name:"is_layerid",id:8},{rule:"optional",type:"bool",name:"is_extend_topic",id:9}]},{name:"ZVideoTabCard",fields:[{rule:"required",type:"CardType",name:"card_type",id:1}],enums:[{name:"CardType",values:[{name:"SMALL_CARD",id:0},{name:"BIG_CARD",id:1}]}]},{name:"ContentAttachment",fields:[{rule:"optional",type:"RelateType",name:"relate_type",id:1},{rule:"optional",type:"int64",name:"content_id",id:2}],enums:[{name:"RelateType",values:[{name:"UNKNOWN",id:0},{name:"ZVIDEO",id:1}]}]}]},{name:"SearchAttachedInfo",fields:[{rule:"optional",type:"string",name:"hit_features_hash",id:1,options:{default:""}},{rule:"optional",type:"string",name:"search_hash_id",id:2,options:{default:""}},{rule:"optional",type:"ContentType.Type",name:"content_type",id:3},{rule:"optional",type:"string",name:"content_id",id:4,options:{default:""}},{rule:"optional",type:"string",name:"content_token",id:5,options:{default:""}},{rule:"optional",type:"string",name:"parent_id",id:6,options:{default:""}},{rule:"optional",type:"string",name:"parent_token",id:7,options:{default:""}},{rule:"optional",type:"string",name:"member_hash_id",id:8,options:{default:""}},{rule:"optional",type:"string",name:"query",id:9,options:{default:""}},{rule:"optional",type:"TimeZone.Type",name:"time_zone",id:10},{rule:"optional",type:"Tab.Type",name:"tab_type",id:11},{rule:"optional",type:"Bar.Type",name:"bar_type",id:12},{rule:"optional",type:"string",name:"input_query",id:13,options:{default:""}},{rule:"optional",type:"SearchSource.Type",name:"search_source",id:14},{rule:"optional",type:"ContentType.Type",name:"restrict_type",id:15,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"client_timestamp",id:16,options:{default:0}},{rule:"optional",type:"int32",name:"index",id:17},{rule:"optional",type:"bool",name:"hash_by_za_etl",id:18,options:{default:!1}},{rule:"optional",type:"bool",name:"is_ad",id:19,options:{default:!1}},{rule:"optional",type:"int32",name:"container_index",id:20},{rule:"optional",type:"int32",name:"content_index",id:21},{rule:"optional",type:"ContainerType.Type",name:"container_type",id:22},{rule:"optional",type:"FunctionType.Type",name:"function_type",id:23},{rule:"optional",type:"string",name:"category",id:24},{rule:"optional",type:"bool",name:"has_zhihu_recommend",id:25},{rule:"optional",type:"int64",name:"publish_time",id:26},{rule:"optional",type:"int32",name:"voteuped_num",id:27},{rule:"optional",type:"int32",name:"commented_num",id:28},{rule:"optional",type:"int32",name:"followed_num",id:29},{rule:"optional",type:"CorrectionAction.Type",name:"correction_action",id:30},{rule:"optional",type:"string",name:"correction_query",id:31},{rule:"optional",type:"bool",name:"enable_correct",id:32},{rule:"optional",type:"int32",name:"container_tab_index",id:33},{rule:"optional",type:"QueryType.Type",name:"query_type",id:34},{rule:"optional",type:"string",name:"entity_page_type",id:35},{rule:"optional",type:"string",name:"entity_page_token",id:36},{rule:"optional",type:"SensitiveLevel.Type",name:"sensitive_level",id:37},{rule:"optional",type:"string",name:"km_content_log",id:38},{rule:"optional",type:"bool",name:"is_manual_intervention",id:39},{rule:"optional",type:"string",name:"shield_strategy",id:40},{rule:"optional",type:"string",name:"lottery_vertical_category_name",id:41},{rule:"repeated",type:"SearchExtendInfo",name:"search_extend_info",id:42},{rule:"optional",type:"string",name:"sub_category",id:43},{rule:"optional",type:"string",name:"sub_container_type",id:44},{rule:"optional",type:"string",name:"sub_tab_name",id:45}],messages:[{name:"TimeZone",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Day",id:1},{name:"Week",id:2},{name:"ThreeMonths",id:3}]}]},{name:"Tab",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"General",id:1},{name:"People",id:2},{name:"Topic",id:3},{name:"Column",id:4},{name:"Live",id:5},{name:"Pin",id:6},{name:"Publication",id:7},{name:"Album",id:8},{name:"Time",id:9},{name:"My",id:10},{name:"KmAll",id:11},{name:"KmPaidColumn",id:12},{name:"KmLive",id:13},{name:"KmEBook",id:14},{name:"KmInstaBook",id:15},{name:"KmPaidMagazine",id:16},{name:"KmAudio",id:17},{name:"KmLiterature",id:18},{name:"Kmchapter",id:19},{name:"Video",id:20},{name:"ZhihuKmAll",id:21},{name:"Club",id:22},{name:"ClubPost",id:23},{name:"KmManga",id:24}]}]},{name:"Bar",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Main",id:1},{name:"NavBar",id:2}]}]},{name:"FunctionType",fields:[],enums:[{name:"Type",values:[{name:"Default",id:0},{name:"Ask",id:1},{name:"Detail",id:2},{name:"Expand",id:3},{name:"MoreCategory",id:4},{name:"MoreItem",id:5}]}]},{name:"CorrectionAction",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Corrected",id:1},{name:"Recommend",id:2}]}]},{name:"QueryType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Sensitive",id:2}]}]},{name:"SensitiveLevel",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"SensitiveBlocked",id:1},{name:"SensitiveWhitelist",id:2},{name:"SensitiveStatic",id:3}]}]},{name:"SearchExtendInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"ContainerNmae",id:0},{name:"PaidAnswer",id:1},{name:"RawQuery",id:2},{name:"ClarifyHashId",id:3}]}]}]},{name:"TimelineAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_token",id:2},{rule:"optional",type:"string",name:"parent_token",id:3},{rule:"optional",type:"int64",name:"video_id",id:4},{rule:"optional",type:"string",name:"content_id",id:5}]},{name:"PinInfo",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"int64",name:"publish_timestamp",id:2},{rule:"optional",type:"int32",name:"reaction_num",id:3},{rule:"optional",type:"int32",name:"comment_num",id:4},{rule:"optional",type:"int32",name:"repin_num",id:5},{rule:"optional",type:"bool",name:"has_text",id:6},{rule:"optional",type:"bool",name:"has_link",id:7},{rule:"optional",type:"bool",name:"has_image",id:8},{rule:"optional",type:"bool",name:"has_video",id:9},{rule:"optional",type:"ContentSubType.Type",name:"link_type",id:10},{rule:"optional",type:"bool",name:"is_original",id:11},{rule:"optional",type:"int64",name:"source_pin_id",id:12,options:{deprecated:!0}},{rule:"repeated",type:"string",name:"image_id",id:13},{rule:"repeated",type:"int64",name:"video_id",id:14},{rule:"optional",type:"string",name:"author_hash_id",id:15},{rule:"optional",type:"string",name:"publish_date",id:16},{rule:"optional",type:"ContentFoldType",name:"fold_type",id:17},{rule:"repeated",type:"string",name:"special_tag",id:18},{rule:"optional",type:"bool",name:"has_repin_chain_entry",id:19},{rule:"optional",type:"bool",name:"has_repin_image",id:20},{rule:"optional",type:"bool",name:"has_repin_sticker",id:21},{rule:"optional",type:"bool",name:"has_repin_gif",id:22},{rule:"optional",type:"bool",name:"has_location",id:23},{rule:"optional",type:"string",name:"repin_source_id",id:24}],enums:[{name:"ContentFoldType",values:[{name:"Unknown",id:0},{name:"Raw",id:1},{name:"NormalFold",id:2},{name:"DetailFold",id:3}]}]},{name:"PinRecommendMemberAttachedInfo",fields:[{rule:"optional",type:"string",name:"hash_id",id:1},{rule:"optional",type:"int64",name:"index",id:2}]},{name:"PinDiscoverMemberAttachedInfo",fields:[{rule:"optional",type:"string",name:"action_hash_id",id:1},{rule:"optional",type:"string",name:"target_hash_id",id:2},{rule:"optional",type:"string",name:"recommend_reason",id:3},{rule:"optional",type:"RecommendType",name:"recommend_type",id:4}],enums:[{name:"RecommendType",values:[{name:"Unknown",id:0},{name:"FollowMoment",id:1},{name:"RandomRecommend",id:2},{name:"PinCreator",id:3},{name:"Algorithm",id:4},{name:"PR",id:5},{name:"HotFollow",id:6}]}]},{name:"RecommendMemberAttachedInfo",fields:[{rule:"optional",type:"string",name:"hash_id",id:1},{rule:"optional",type:"int64",name:"index",id:2},{rule:"optional",type:"int32",name:"recommend_reason",id:3}]},{name:"PinFeedAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_id",id:2,options:{deprecated:!0}},{rule:"optional",type:"FeedType",name:"feed_type",id:3},{rule:"optional",type:"int64",name:"publish_timestamp",id:4,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"reaction_num",id:5,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"comment_num",id:6,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"repin_num",id:7,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"has_text",id:8,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"has_link",id:9,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"has_image",id:10,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"has_video",id:11,options:{deprecated:!0}},{rule:"optional",type:"ContentSubType.Type",name:"link_type",id:12,options:{deprecated:!0}},{rule:"optional",type:"bool",name:"is_original",id:13,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"middle_pin_id",id:14,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"source_pin_id",id:15,options:{deprecated:!0}},{rule:"repeated",type:"string",name:"image_id",id:16,options:{deprecated:!0}},{rule:"repeated",type:"int64",name:"video_id",id:17,options:{deprecated:!0}},{rule:"optional",type:"string",name:"recommend_reason",id:18},{rule:"repeated",type:"PinInfo",name:"pin",id:19},{rule:"optional",type:"FeedLocation.Type",name:"feed_location",id:20}],messages:[{name:"FeedLocation",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Feed",id:1},{name:"HotRecommend",id:2},{name:"FeedFollowedSpecial",id:3},{name:"HotList",id:4},{name:"SpecialSelected",id:5},{name:"SpecialHottest",id:6},{name:"SpecialNewest",id:7},{name:"PinRelatedRecommend",id:8},{name:"NormalFeed",id:9},{name:"HotRecommendFeed",id:10},{name:"DailyNews",id:11}]}]}],enums:[{name:"FeedType",values:[{name:"Unknown",id:0},{name:"Moment",id:1},{name:"Recommend",id:2},{name:"EditorRecommend",id:3},{name:"AlgorithmRecommend",id:4}]}]},{name:"GroupFeedAttachedInfo",fields:[{rule:"optional",type:"int64",name:"request_id",id:1},{rule:"optional",type:"int64",name:"publish_timestamp",id:2},{rule:"optional",type:"int32",name:"feed_num",id:3},{rule:"repeated",type:"SourceInfo",name:"source",id:4},{rule:"optional",type:"int32",name:"feed_index",id:5}],messages:[{name:"SourceInfo",fields:[{rule:"optional",type:"string",name:"source_type",id:1},{rule:"optional",type:"string",name:"source_id",id:2},{rule:"optional",type:"bool",name:"is_followed",id:3}]}]},{name:"ActionCardAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_index",id:2},{rule:"optional",type:"string",name:"request_id",id:3},{rule:"optional",type:"int64",name:"publish_timestamp",id:4}]},{name:"ActionCardItemAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_id",id:2},{rule:"optional",type:"string",name:"content_token",id:3},{rule:"optional",type:"string",name:"content_index",id:4},{rule:"optional",type:"string",name:"request_id",id:5},{rule:"optional",type:"int64",name:"publish_timestamp",id:6},{rule:"optional",type:"string",name:"extra",id:7}]},{name:"HybridCardAttachedInfo",fields:[{rule:"optional",type:"string",name:"hybrid_url",id:1},{rule:"optional",type:"int64",name:"publish_timestamp",id:2},{rule:"optional",type:"string",name:"content_index",id:3},{rule:"optional",type:"string",name:"request_id",id:4}]},{name:"HybridCardItemAttachedInfo",fields:[{rule:"optional",type:"string",name:"hybrid_url",id:1},{rule:"optional",type:"int64",name:"publish_timestamp",id:2},{rule:"optional",type:"ContentType.Type",name:"content_type",id:3},{rule:"optional",type:"string",name:"content_id",id:4},{rule:"optional",type:"string",name:"content_index",id:5},{rule:"optional",type:"string",name:"request_id",id:6},{rule:"optional",type:"string",name:"recommend_reason",id:7}]},{name:"RouterCardAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"content_id",id:2},{rule:"optional",type:"int64",name:"publish_timestamp",id:3},{rule:"optional",type:"string",name:"content_index",id:4},{rule:"optional",type:"string",name:"request_id",id:5},{rule:"optional",type:"string",name:"source",id:6},{rule:"optional",type:"string",name:"level",id:7}]},{name:"MarketCardAttachedInfo",fields:[{rule:"optional",type:"MarketCardType.Type",name:"card_type",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"string",name:"content_index",id:4},{rule:"optional",type:"int64",name:"timestamp",id:5},{rule:"optional",type:"string",name:"extra",id:6},{rule:"optional",type:"string",name:"recall_source",id:7},{rule:"optional",type:"string",name:"recommend_source",id:8},{rule:"optional",type:"string",name:"material_id",id:9},{rule:"repeated",type:"MarketCardExtendedInfo",name:"market_card_extended_infos",id:10}],messages:[{name:"MarketCardExtendedInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"VipType",id:0}]}]}]},{name:"MarketCardItemAttachedInfo",fields:[{rule:"optional",type:"MarketCardType.Type",name:"card_type",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"string",name:"content_index",id:4},{rule:"optional",type:"int64",name:"timestamp",id:5},{rule:"optional",type:"string",name:"extra",id:6},{rule:"optional",type:"string",name:"recall_source",id:7},{rule:"optional",type:"string",name:"recommend_source",id:8},{rule:"optional",type:"string",name:"material_id",id:9}]},{name:"QuestionAnswersListAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"ContentType.Type",name:"parent_type",id:2},{rule:"optional",type:"int64",name:"content_token",id:3},{rule:"optional",type:"int64",name:"parent_token",id:4},{rule:"repeated",type:"QuestionAndAnswerExtendInfo",name:"question_answer_extend_info",id:5}],messages:[{name:"QuestionAndAnswerExtendInfo",fields:[{rule:"required",type:"ExtendedType",name:"extended_type",id:1},{rule:"required",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"RecommendReason",id:0}]}]}]},{name:"ClubPostNotificationAction",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"CommentCreate",id:1},{name:"CommentLike",id:2},{name:"ClubPostAddReaction",id:3},{name:"ClubPostPollEnd",id:4}]}]},{name:"ClubPostAttachedInfo",fields:[{rule:"optional",type:"string",name:"noti_id",id:1},{rule:"optional",type:"ClubPostNotificationAction.Type",name:"notification_action_type",id:2},{rule:"optional",type:"string",name:"club_id",id:3},{rule:"optional",type:"string",name:"post_id",id:4},{rule:"optional",type:"string",name:"title",id:5},{rule:"optional",type:"int32",name:"title_length",id:6},{rule:"optional",type:"string",name:"content",id:7},{rule:"optional",type:"int32",name:"content_length",id:8},{rule:"optional",type:"int32",name:"picture_num",id:9},{rule:"optional",type:"int32",name:"video_num",id:10},{rule:"optional",type:"string",name:"creator_id",id:11},{rule:"optional",type:"string",name:"mask_id",id:12},{rule:"optional",type:"int32",name:"clubpost_index",id:13}]},{name:"AdCardAttachedInfo",fields:[{rule:"optional",type:"string",name:"ad_id",id:1},{rule:"optional",type:"string",name:"creative_id",id:2}]},{name:"SkuAttachedInfo",fields:[{rule:"optional",type:"ContentType.Type",name:"content_type",id:1},{rule:"optional",type:"string",name:"sku_id",id:2},{rule:"optional",type:"string",name:"business_id",id:3},{rule:"optional",type:"BusinessType.Type",name:"business_type",id:4},{rule:"optional",type:"string",name:"chapter_id",id:5}],messages:[{name:"BusinessType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"knowledgeMarket",id:1}]}]}]},{name:"CommentCardAttachedInfo",fields:[{rule:"optional",type:"CardInfo.Type",name:"card_type",id:1},{rule:"optional",type:"CommentType",name:"comment_type",id:2},{rule:"optional",type:"int32",name:"index",id:3}],enums:[{name:"CommentType",values:[{name:"FeatureComment",id:0},{name:"NormalComment",id:1}]}]},{name:"AttachedInfo",fields:[{rule:"optional",type:"FeedAttachedInfo",name:"feed_attached_info",id:1},{rule:"optional",type:"PinFeedAttachedInfo",name:"pin_feed_attached_info",id:2},{rule:"optional",type:"ActionCardAttachedInfo",name:"action_card_attached_info",id:3},{rule:"optional",type:"ActionCardItemAttachedInfo",name:"action_card_item_attached_info",id:4},{rule:"optional",type:"PinNotificationAttachedInfo",name:"pin_notification_attached_info",id:5},{rule:"optional",type:"string",name:"request_id",id:6},{rule:"optional",type:"SearchAttachedInfo",name:"search_attached_info",id:7},{rule:"optional",type:"TimelineAttachedInfo",name:"timeline_attached_info",id:8},{rule:"optional",type:"GroupFeedAttachedInfo",name:"group_feed_attached_info",id:9},{rule:"optional",type:"PinRecommendMemberAttachedInfo",name:"pin_recommend_member_attached_info",id:10},{rule:"optional",type:"PushAttachedInfo",name:"push_attached_info",id:11},{rule:"optional",type:"NotificationAttachedInfo",name:"notification_attached_info",id:12},{rule:"optional",type:"HybridCardAttachedInfo",name:"hybrid_card_attached_info",id:13},{rule:"optional",type:"HybridCardItemAttachedInfo",name:"hybrid_card_item_attached_info",id:14},{rule:"optional",type:"RouterCardAttachedInfo",name:"router_card_attached_info",id:15},{rule:"optional",type:"ZhihuDailyFeedAttachedInfo",name:"zhihu_daily_feed_attached_info",id:16},{rule:"optional",type:"RecommendMemberAttachedInfo",name:"recommend_member_attached_info",id:17},{rule:"optional",type:"MarketCardAttachedInfo",name:"market_card_attached_info",id:18},{rule:"optional",type:"MarketCardItemAttachedInfo",name:"market_card_item_attached_info",id:19},{rule:"optional",type:"QuestionAnswersListAttachedInfo",name:"question_answers_list_attached_info",id:20},{rule:"optional",type:"ViewInfo",name:"view",id:21},{rule:"optional",type:"PinDiscoverMemberAttachedInfo",name:"pin_discover_member_attached_info",id:22},{rule:"optional",type:"ProfileMedalAttachedInfo",name:"profile_medal_attached_info",id:23},{rule:"optional",type:"VideoTopicAttachedInfo",name:"video_topic_attached_info",id:24},{rule:"optional",type:"MarketQaAdCardAttachedInfo",name:"market_qa_ad_attached_info",id:25},{rule:"optional",type:"MemberGuideAttachedInfo",name:"member_guide_attached_info",id:26},{rule:"optional",type:"UserAttachedInfo",name:"user_attached_info",id:27},{rule:"optional",type:"ClubPostAttachedInfo",name:"club_post_attached_info",id:28},{rule:"optional",type:"DramaAttachedInfo",name:"drama_attached_info",id:29},{rule:"optional",type:"AdCardAttachedInfo",name:"ad_card_attached_info",id:30},{rule:"optional",type:"SkuAttachedInfo",name:"sku_attached_info",id:31},{rule:"optional",type:"CommentCardAttachedInfo",name:"comment_card_attached_info",id:32},{rule:"optional",type:"ZRecAttachedInfo",name:"zrec_attached_info",id:33}]},{name:"PushAttachedInfo",fields:[{rule:"optional",type:"float",name:"rating",id:1}]},{name:"MessageInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Text",id:1},{name:"Audio",id:2},{name:"Image",id:3},{name:"File",id:4}]}]},{name:"PinNotificationAttachedInfo",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"NotificationActionType",name:"notification_action_type",id:2},{rule:"optional",type:"PinInfo",name:"pin",id:3}],enums:[{name:"NotificationActionType",values:[{name:"Unknown",id:0},{name:"CommentToComment",id:1},{name:"CommentToPin",id:2},{name:"CommentLikeInPin",id:3},{name:"MentionInPinComment",id:4},{name:"CreateRepin",id:5},{name:"CreateRepinWithComment",id:6},{name:"CreateRepinWithMention",id:7},{name:"MentionInPin",id:8},{name:"AddPinReaction",id:9}]}]},{name:"ImgResourceErrorInfo",fields:[{rule:"optional",type:"string",name:"url",id:1},{rule:"optional",type:"string",name:"img_url",id:2},{rule:"optional",type:"ResourceErrorType",name:"error_type",id:3},{rule:"optional",type:"string",name:"error_code",id:4},{rule:"optional",type:"string",name:"error_description",id:5},{rule:"optional",type:"int64",name:"start_time",id:6},{rule:"optional",type:"int64",name:"end_time",id:7},{rule:"optional",type:"int64",name:"length",id:8},{rule:"optional",type:"string",name:"img_from",id:9},{rule:"optional",type:"string",name:"x_cache",id:10},{rule:"optional",type:"string",name:"x_cdn_provider",id:11},{rule:"optional",type:"string",name:"converted_format",id:12},{rule:"optional",type:"string",name:"origin_format",id:13}],enums:[{name:"ResourceErrorType",values:[{name:"UserCancel",id:0},{name:"NetworkErr",id:1},{name:"Unknown",id:2},{name:"NoError",id:3}]}]},{name:"LocationInfo",fields:[{rule:"optional",type:"int32",name:"mnc",id:1},{rule:"optional",type:"int32",name:"lac",id:2},{rule:"optional",type:"int32",name:"cellid",id:3},{rule:"optional",type:"double",name:"longitude",id:4},{rule:"optional",type:"double",name:"latitude",id:5}]},{name:"NotificationAttachedInfo",fields:[{rule:"optional",type:"int64",name:"id",id:1},{rule:"optional",type:"NotificationType",name:"notification_type",id:2},{rule:"optional",type:"EntryInfo",name:"entry",id:3},{rule:"optional",type:"ContentType.Type",name:"content_type",id:4},{rule:"optional",type:"NotificationAction.Type",name:"notification_action",id:5},{rule:"optional",type:"string",name:"notification_name",id:6},{rule:"optional",type:"int32",name:"activity_type",id:7},{rule:"optional",type:"InviteInfo",name:"invite",id:8},{rule:"repeated",type:"NotificationExtendedInfo",name:"notification_extended_info",id:9}],messages:[{name:"NotificationAction",fields:[],enums:[{name:"Type",values:[{name:"Comment",id:0},{name:"Mention",id:1},{name:"Follow",id:2},{name:"Invite",id:3},{name:"Like",id:4},{name:"Thanks",id:5},{name:"Voteup",id:6},{name:"Reward",id:7},{name:"Publish",id:8},{name:"Edit",id:9},{name:"CommentReply",id:10},{name:"CommentMention",id:11},{name:"Unknown",id:12},{name:"ProfileMedalAvailavle",id:13},{name:"ProfileMedalUpgrade",id:14},{name:"ProfileMedalDowngrade",id:15},{name:"ProfileMedalInvalid",id:16},{name:"CommunityCensor",id:17},{name:"ProfessionalRecognize",id:18},{name:"DiscussionInvitation",id:19}]}]},{name:"EntryInfo",fields:[{rule:"optional",type:"string",name:"name",id:1}]},{name:"InviteInfo",fields:[{rule:"optional",type:"int32",name:"reason_type",id:1},{rule:"optional",type:"int32",name:"invite_source",id:2},{rule:"optional",type:"int32",name:"invite_type",id:3}]},{name:"NotificationExtendedInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"OperatorID",id:0},{name:"KeyID",id:1},{name:"ObjectID",id:2},{name:"TargetID",id:3},{name:"RenderCardType",id:4},{name:"CardGroup",id:5}]}]}],enums:[{name:"NotificationType",values:[{name:"Entry",id:0},{name:"Notification",id:1}]}]},{name:"ZhihuDailyFeedAttachedInfo",fields:[{rule:"optional",type:"string",name:"feed_id",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_token",id:3}]},{name:"ProfileMedalAttachedInfo",fields:[{rule:"optional",type:"string",name:"medal_id",id:1},{rule:"optional",type:"MedalStatus",name:"medal_status",id:2},{rule:"optional",type:"string",name:"medal_level",id:3}],enums:[{name:"MedalStatus",values:[{name:"acquired",id:1},{name:"available",id:2},{name:"invalid",id:3},{name:"inactivated",id:4},{name:"expired",id:5}]}]},{name:"VideoTopicAttachedInfo",fields:[{rule:"optional",type:"VideoTopicType",name:"topic_type",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"int64",name:"marked_timestamp",id:4},{rule:"optional",type:"int32",name:"voteup_num",id:5},{rule:"optional",type:"int32",name:"comment_num",id:6},{rule:"optional",type:"int32",name:"content_index",id:7},{rule:"optional",type:"string",name:"video_id",id:8},{rule:"optional",type:"string",name:"source_video_id",id:9},{rule:"optional",type:"string",name:"topic_id",id:10},{rule:"optional",type:"string",name:"request_id",id:11},{rule:"optional",type:"string",name:"generator_type",id:12}],enums:[{name:"VideoTopicType",values:[{name:"Banner",id:0},{name:"Choice",id:1},{name:"Newest",id:2},{name:"List",id:3},{name:"Continuous",id:4}]}]},{name:"MarketQaAdCardAttachedInfo",fields:[{rule:"optional",type:"QaAdCardType",name:"card_type",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"string",name:"material_id",id:4},{rule:"optional",type:"string",name:"question_id",id:5},{rule:"optional",type:"string",name:"answer_id",id:6},{rule:"optional",type:"int64",name:"timestamp",id:7},{rule:"optional",type:"string",name:"recall_source",id:8},{rule:"optional",type:"string",name:"recommend_source",id:9},{rule:"optional",type:"string",name:"extra",id:10}],enums:[{name:"QaAdCardType",values:[{name:"First",id:0},{name:"Unknown",id:1},{name:"QaAdEventCard",id:2},{name:"QaAdPaidAnswerCard",id:3}]}]},{name:"MemberGuideAttachedInfo",fields:[{rule:"optional",type:"string",name:"guide_name",id:1},{rule:"optional",type:"string",name:"strategy",id:2}]},{name:"UserAttachedInfo",fields:[{rule:"repeated",type:"UserExtendedInfo",name:"user_extended_infos",id:1}],messages:[{name:"UserExtendedInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"RelationCardSourceInfo",id:0}]}]}]},{name:"HttpDnsInfo",fields:[{rule:"optional",type:"string",name:"domain",id:1},{rule:"optional",type:"DnsSource",name:"dns_source",id:2},{rule:"repeated",type:"string",name:"ip",id:3},{rule:"optional",type:"string",name:"client_ip",id:4}],enums:[{name:"DnsSource",values:[{name:"System",id:0},{name:"Zhihu",id:1},{name:"ZhihuHijack",id:2},{name:"Ali",id:3},{name:"ZhihuV6",id:4}]}]},{name:"PageshowTransmission",fields:[{rule:"optional",type:"int32",name:"page_level",id:1},{rule:"optional",type:"string",name:"page_id",id:2}]},{name:"PageCardshowTransmission",fields:[{rule:"optional",type:"int32",name:"svip_channel_level",id:1},{rule:"optional",type:"string",name:"svip_channel_id",id:2}]},{name:"DramaAttachedInfo",fields:[{rule:"repeated",type:"DramaExtendedInfo",name:"drama_extended_info",id:1}],messages:[{name:"DramaExtendedInfo",fields:[{rule:"optional",type:"ExtendedType",name:"extended_type",id:1},{rule:"optional",type:"string",name:"value",id:2}],enums:[{name:"ExtendedType",values:[{name:"id",id:0},{name:"item_type",id:1},{name:"orientation",id:2},{name:"stratege",id:3},{name:"model",id:4}]}]}]},{name:"ZRecAttachedInfo",fields:[{rule:"optional",type:"int64",name:"request_id",id:1},{rule:"optional",type:"ContentType.Type",name:"content_type",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"string",name:"content_token",id:4},{rule:"optional",type:"int64",name:"zrec_server_timestamp_ms",id:5},{rule:"optional",type:"NextAttachedInfo",name:"next_attached_info",id:6},{rule:"optional",type:"string",name:"request_uuid",id:7}],messages:[{name:"NextAttachedInfo",fields:[{rule:"optional",type:"int64",name:"request_content_id",id:1},{rule:"optional",type:"ContentType.Type",name:"request_content_type",id:2},{rule:"optional",type:"string",name:"request_content_token",id:3},{rule:"optional",type:"string",name:"page_source",id:4}]}]},{name:"MessageCodec",fields:[],enums:[{name:"Type",values:[{name:"ORIGIN",id:0},{name:"GZIP",id:1},{name:"GZIP_DIRECT",id:2}]}]},{name:"EntryMetaClass",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"ZaLogEntry",id:1},{name:"ZaLogBeginEndEntry",id:2}]}]},{name:"BatchEntry",fields:[{rule:"repeated",type:"bytes",name:"entry",id:1}]},{name:"ZaKafkaBatch",fields:[{rule:"optional",type:"MessageCodec.Type",name:"codec_type",id:1},{rule:"optional",type:"EntryMetaClass.Type",name:"entry_class",id:2},{rule:"optional",type:"bytes",name:"batch_entry_value",id:3},{rule:"optional",type:"int64",name:"server_timestamp",id:4},{rule:"optional",type:"string",name:"ip",id:5},{rule:"optional",type:"proto3.Certification",name:"certification",id:6}]},{name:"ZaQueueValueType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"ZaLogEntry",id:1},{name:"GZipped",id:2}]}]},{name:"ZaQueueElemInner",fields:[{rule:"optional",type:"ZaQueueValueType.Type",name:"value_type",id:1},{rule:"optional",type:"bytes",name:"value",id:2},{rule:"optional",type:"int64",name:"server_timestamp",id:3},{rule:"optional",type:"string",name:"ip",id:4},{rule:"optional",type:"string",name:"client_id",id:5},{rule:"optional",type:"Platform.Type",name:"platform",id:6},{rule:"optional",type:"Product.Type",name:"product",id:7},{rule:"optional",type:"string",name:"log_type",id:8},{rule:"optional",type:"proto3.Certification",name:"certification",id:9}]},{name:"ZaTaskType",fields:[],enums:[{name:"Type",values:[{name:"UNKNOWN",id:1},{name:"SEARCH",id:2}]}]},{name:"ZaTask",fields:[{rule:"optional",type:"ZaTaskType.Type",name:"type",id:1},{rule:"repeated",type:"ZaLogEntry",name:"log",id:2},{rule:"optional",type:"IDInfo",name:"id",id:3},{rule:"optional",type:"ClientInfo",name:"client",id:4},{rule:"optional",type:"int64",name:"start_timestamp",id:5},{rule:"optional",type:"int64",name:"end_timestamp",id:6},{rule:"optional",type:"TaskExtraInfo",name:"extra",id:7}]},{name:"TaskExtraInfo",fields:[{rule:"optional",type:"TaskSearchInfo",name:"search",id:1}]},{name:"TaskSearchInfo",fields:[{rule:"optional",type:"string",name:"raw_query",id:1},{rule:"optional",type:"string",name:"query",id:2},{rule:"repeated",type:"ContentType.Type",name:"restrict_type",id:3},{rule:"optional",type:"int32",name:"query_index",id:4},{rule:"optional",type:"string",name:"request_url",id:5},{rule:"optional",type:"int32",name:"num_results",id:6,options:{deprecated:!0}},{rule:"repeated",type:"SearchResult",name:"result",id:7,options:{deprecated:!0}},{rule:"repeated",type:"SearchResult",name:"other_result",id:8,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"num_events",id:9,options:{deprecated:!0}},{rule:"repeated",type:"SearchResultPage",name:"page",id:10}]},{name:"SearchResultPage",fields:[{rule:"repeated",type:"SearchResult",name:"result",id:1},{rule:"repeated",type:"SearchResult",name:"other_result",id:2},{rule:"optional",type:"int32",name:"num_results",id:3,options:{deprecated:!0}},{rule:"optional",type:"int32",name:"num_events",id:4},{rule:"optional",type:"string",name:"page_url",id:5},{rule:"optional",type:"SearchPageType.Type",name:"page_type",id:6}]},{name:"SearchResult",fields:[{rule:"optional",type:"Module.Type",name:"parent_type",id:1},{rule:"optional",type:"int32",name:"parent_index",id:2},{rule:"optional",type:"ViewLocation",name:"location",id:3},{rule:"optional",type:"ModuleInfo",name:"module",id:4},{rule:"optional",type:"ElementName.Type",name:"element_name",id:5},{rule:"optional",type:"SearchDisplayPosition.Type",name:"display_position",id:6},{rule:"optional",type:"string",name:"request_url",id:7,options:{deprecated:!0}},{rule:"repeated",type:"SearchEvent",name:"event",id:8},{rule:"optional",type:"int32",name:"result_index",id:9}]},{name:"SearchPageType",fields:[],enums:[{name:"Type",values:[{name:"UNKNOWN",id:1},{name:"INTEGRATED",id:2},{name:"PEOPLE",id:3},{name:"TOPIC",id:4},{name:"COLUMN",id:5},{name:"LIVE",id:6},{name:"EBOOK",id:7}]}]},{name:"SearchDisplayPosition",fields:[],enums:[{name:"Type",values:[{name:"UNKNOWN",id:1},{name:"MAIN_SEARCH",id:2},{name:"TOP_NAV_BAR",id:3},{name:"ASK_QUESTION_PAGE",id:4},{name:"AT_USER_PAGE",id:5},{name:"INVITE_USER_PAGE",id:6}]}]},{name:"SearchEvent",fields:[{rule:"optional",type:"Action.Type",name:"type",id:1},{rule:"optional",type:"string",name:"url",id:2},{rule:"optional",type:"int64",name:"timestamp",id:3},{rule:"optional",type:"int64",name:"duration",id:4}]},{name:"ZaSessionEntry",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"ZaLogEntry",name:"log",id:2},{rule:"optional",type:"ZaTask",name:"task",id:3}],enums:[{name:"Type",values:[{name:"EVENT",id:1},{name:"PAGE_SHOW",id:2},{name:"CARD_SHOW",id:3},{name:"TASK",id:4}]}]},{name:"ZaSession",fields:[{rule:"repeated",type:"ZaSessionEntry",name:"entry",id:1},{rule:"optional",type:"IDInfo",name:"id",id:2},{rule:"optional",type:"ClientInfo",name:"client",id:3},{rule:"optional",type:"int64",name:"start_timestamp",id:4},{rule:"optional",type:"int64",name:"end_timestamp",id:5},{rule:"optional",type:"string",name:"landing_url",id:6},{rule:"optional",type:"string",name:"exit_url",id:7},{rule:"optional",type:"int32",name:"url_num",id:8},{rule:"optional",type:"int64",name:"duration",id:9},{rule:"optional",type:"UTMInfo",name:"utm",id:10},{rule:"optional",type:"bool",name:"is_bounce",id:11},{rule:"optional",type:"BaseInfo",name:"base",id:12},{rule:"optional",type:"ViewInfo",name:"landing_view",id:13},{rule:"optional",type:"ViewInfo",name:"exit_view",id:14},{rule:"optional",type:"DeviceInfo",name:"device",id:15,options:{deprecated:!0}},{rule:"optional",type:"ZaLogEntry",name:"first_entry",id:16},{rule:"optional",type:"int32",name:"day_index",id:17},{rule:"optional",type:"int32",name:"card_show_num",id:18}]},{name:"ZaSubSessionEntry",fields:[{rule:"repeated",type:"ZaLogEntry",name:"entry",id:1},{rule:"optional",type:"Type",name:"type",id:2},{rule:"optional",type:"ZaLogEntry",name:"info",id:3},{rule:"optional",type:"string",name:"sub_session_id",id:4},{rule:"optional",type:"SubSessionCommonInfo",name:"common",id:5},{rule:"optional",type:"SubSessionSearchInfo",name:"search",id:6},{rule:"optional",type:"SubSessionSourceInfo",name:"source",id:7},{rule:"optional",type:"UTMInfo",name:"utm",id:8}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"CreateQuestion",id:1},{name:"Feed",id:2},{name:"Hot",id:3},{name:"Explore",id:4},{name:"Search",id:5},{name:"DB",id:6},{name:"Market",id:7},{name:"Notify",id:8},{name:"PersonalInfo",id:9},{name:"Push",id:10},{name:"LaunchAd",id:11},{name:"Follow",id:12},{name:"Recommend",id:13},{name:"Billboard",id:14},{name:"SearchPrior",id:15},{name:"SearchMiddle",id:16},{name:"SearchPosterior",id:17},{name:"MagiPrior",id:18},{name:"MagiMiddle",id:19},{name:"MagiPosterior",id:20},{name:"Magi",id:21},{name:"VideoFeed",id:22},{name:"NewFollow",id:23},{name:"Club",id:24}]}]},{name:"SubSessionCommonInfo",fields:[{rule:"optional",type:"int64",name:"start_time",id:1},{rule:"optional",type:"int64",name:"duration",id:2},{rule:"optional",type:"int32",name:"cardshow_num",id:3},{rule:"optional",type:"int32",name:"comment_num",id:4},{rule:"optional",type:"int32",name:"content_read_num",id:5},{rule:"optional",type:"int32",name:"collect_num",id:6},{rule:"optional",type:"int32",name:"upvote_num",id:7},{rule:"optional",type:"int32",name:"nohelp_num",id:8},{rule:"optional",type:"int32",name:"comment_read_num",id:9},{rule:"optional",type:"int32",name:"share_num",id:10},{rule:"optional",type:"int32",name:"thank_num",id:11},{rule:"optional",type:"int32",name:"downvote_num",id:12},{rule:"optional",type:"int32",name:"report_num",id:13},{rule:"optional",type:"int32",name:"follow_num",id:14},{rule:"optional",type:"int32",name:"unfollow_num",id:15},{rule:"optional",type:"int32",name:"subsession_cardshow_num",id:16},{rule:"optional",type:"int32",name:"subsession_click_num",id:17,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"subsession_duration",id:18},{rule:"optional",type:"int64",name:"on_page_positive_click_num",id:19},{rule:"optional",type:"int64",name:"on_page_negative_click_num",id:20},{rule:"optional",type:"bool",name:"is_valid_sub_session",id:21}]},{name:"SubSessionSearchInfo",fields:[{rule:"repeated",type:"string",name:"queries",id:1},{rule:"repeated",type:"ContentType.Type",name:"types",id:2},{rule:"optional",type:"string",name:"search_hash_id",id:3}]},{name:"SubSessionSourceInfo",fields:[{rule:"optional",type:"ZaSubSessionEntry.Type",name:"type",id:1},{rule:"optional",type:"string",name:"url",id:2},{rule:"optional",type:"VerticalInfo",name:"vertical",id:3}]},{name:"proto3",fields:[],options:{java_outer_classname:"ZaLogEntryProto3",objc_class_prefix:"proto3"},messages:[{name:"ZaOption",fields:[{rule:"optional",type:"string",name:"hv",id:1}]},{name:"ZaLogEntry",fields:[{rule:"optional",type:"string",name:"log_version",id:1},{rule:"optional",type:"int32",name:"local_increment_id",id:2},{rule:"optional",type:"LogType",name:"log_type",id:3},{rule:"optional",type:"BaseInfo",name:"base",id:4},{rule:"optional",type:"DetailInfo",name:"detail",id:5},{rule:"optional",type:"ExtraInfo",name:"extra",id:6},{rule:"optional",type:"StringLogInfo",name:"string_log",id:7},{rule:"optional",type:"bool",name:"is_SDK_auto_log",id:8}],enums:[{name:"LogType",values:[{name:"Unknown",id:0},{name:"Event",id:1},{name:"Show",id:2},{name:"Ping",id:3},{name:"Player",id:4},{name:"System",id:5},{name:"BeginEnd",id:6},{name:"Monitor",id:7}]}]},{name:"StringLogInfo",fields:[{rule:"optional",type:"string",name:"app_view_log",id:1},{rule:"optional",type:"Type",name:"type",id:2}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"AppView",id:1},{name:"WebView",id:2}]}]},{name:"BaseInfo",fields:[{rule:"optional",type:"IDInfo",name:"id",id:1},{rule:"optional",type:"ClientInfo",name:"client",id:2},{rule:"optional",type:"TimeInfo",name:"time",id:3},{rule:"optional",type:"NetworkInfo",name:"network",id:4},{rule:"optional",type:"LaunchInfo",name:"launch",id:5},{rule:"optional",type:"AbInfo",name:"ab",id:6}]},{name:"IDInfo",fields:[{rule:"optional",type:"int64",name:"member_id",id:1},{rule:"optional",type:"string",name:"member_hash_id",id:2},{rule:"optional",type:"int64",name:"user_id",id:3},{rule:"optional",type:"string",name:"client_id",id:4},{rule:"optional",type:"User.Type",name:"user_type",id:5},{rule:"optional",type:"string",name:"local_client_id",id:6},{rule:"optional",type:"string",name:"local_session_id",id:7},{rule:"optional",type:"int32",name:"local_session_index",id:8},{rule:"optional",type:"string",name:"client_open_id",id:9},{rule:"optional",type:"string",name:"runtime_id",id:101},{rule:"optional",type:"string",name:"shumeng_device_id",id:102},{rule:"optional",type:"string",name:"tdid",id:103},{rule:"optional",type:"string",name:"response_id",id:104},{rule:"optional",type:"string",name:"user_track_id",id:105},{rule:"optional",type:"string",name:"down_ticket",id:106},{rule:"optional",type:"int64",name:"channel_id",id:107},{rule:"optional",type:"string",name:"device_id",id:1001},{rule:"optional",type:"string",name:"session_id",id:1002},{rule:"optional",type:"bool",name:"is_client_id_day_new",id:1003},{rule:"optional",type:"bool",name:"is_client_id_hour_new",id:1004},{rule:"optional",type:"bool",name:"is_device_id_day_new",id:1005},{rule:"optional",type:"bool",name:"is_device_id_hour_new",id:1006},{rule:"optional",type:"bool",name:"is_valid_device",id:1007},{rule:"optional",type:"bool",name:"is_member_hash_id_day_new",id:1008},{rule:"optional",type:"bool",name:"is_member_hash_id_hour_new",id:1009},{rule:"optional",type:"bool",name:"is_package_day_new",id:1010},{rule:"optional",type:"bool",name:"is_active_client_new_log",id:1011},{rule:"optional",type:"string",name:"sdid",id:1024},{rule:"optional",type:"bool",name:"is_spam_member",id:1025}],messages:[{name:"User",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"People",id:1},{name:"Org",id:2},{name:"Guest",id:3}]}]}]},{name:"ClientInfo",fields:[{rule:"optional",type:"Product.Type",name:"product",id:1},{rule:"optional",type:"Platform.Type",name:"platform",id:2},{rule:"optional",type:"string",name:"version_name",id:3},{rule:"optional",type:"int32",name:"version_code",id:4},{rule:"optional",type:"string",name:"user_agent",id:5},{rule:"optional",type:"DeviceInfo",name:"device",id:6},{rule:"optional",type:"string",name:"location_string",id:7},{rule:"optional",type:"string",name:"pre_installed_source",id:101},{rule:"optional",type:"string",name:"install_source",id:102},{rule:"optional",type:"string",name:"update_source",id:103},{rule:"optional",type:"bool",name:"is_in_app",id:1001},{rule:"optional",type:"LocationInfo",name:"location_info",id:1002},{rule:"optional",type:"UserAgent",name:"normalized_user_agent",id:1003},{rule:"optional",type:"AdSource",name:"ad_source",id:1004},{rule:"optional",type:"Certification",name:"certification",id:1005},{rule:"optional",type:"ZABEAction.Type",name:"za_be_action",id:1006},{rule:"optional",type:"int64",name:"be_duration",id:1007}],messages:[{name:"Product",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Zhihu",id:1},{name:"ZhihuDaily",id:2},{name:"Dudu",id:3},{name:"Zhi",id:4},{name:"Trends",id:5},{name:"Za",id:6},{name:"Club",id:7},{name:"Push",id:8},{name:"ZhihuLite",id:9},{name:"ZhihuExplore",id:10},{name:"Laiya",id:11}]}]},{name:"Platform",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"DesktopWeb",id:1},{name:"TabletWeb",id:2},{name:"MobileWeb",id:3},{name:"AndroidPhone",id:4},{name:"AndroidPad",id:5},{name:"iPhone",id:6},{name:"iPad",id:7},{name:"WechatApp",id:8},{name:"BaiduApp",id:9},{name:"KuaiBaoApp",id:10},{name:"QQApp",id:11},{name:"QQBrowserApp",id:12},{name:"AliApp",id:13},{name:"QuickApp",id:14}]}]},{name:"UserAgent",fields:[{rule:"optional",type:"string",name:"agent_family",id:1},{rule:"optional",type:"string",name:"agent_major",id:2},{rule:"optional",type:"string",name:"agent_minor",id:3},{rule:"optional",type:"string",name:"agent_patch",id:4},{rule:"optional",type:"string",name:"os_family",id:5},{rule:"optional",type:"string",name:"os_major",id:6},{rule:"optional",type:"string",name:"os_minor",id:7},{rule:"optional",type:"string",name:"os_patch",id:8},{rule:"optional",type:"string",name:"os_patchMinor",id:9},{rule:"optional",type:"string",name:"device_family",id:10},{rule:"optional",type:"string",name:"app_name",id:11},{rule:"optional",type:"string",name:"app_version",id:12}]},{name:"AdSource",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"string",name:"source",id:2},{rule:"optional",type:"UTMInfo",name:"utm",id:3},{rule:"optional",type:"ChannelInfo",name:"active_channel",id:4},{rule:"optional",type:"ChannelInfo",name:"launch_channel",id:5}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"IDFA",id:1},{name:"IPUA",id:2},{name:"MUID",id:3}]}]},{name:"ChannelInfo",fields:[{rule:"optional",type:"int64",name:"id",id:1},{rule:"optional",type:"string",name:"name",id:2},{rule:"optional",type:"string",name:"type",id:3},{rule:"optional",type:"string",name:"media_type",id:4},{rule:"optional",type:"string",name:"app_store",id:5},{rule:"optional",type:"string",name:"agent_name",id:6},{rule:"optional",type:"string",name:"marking_name",id:7}]},{name:"ZABEAction",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Open",id:1},{name:"Close",id:2}]}]}]},{name:"TimeInfo",fields:[{rule:"optional",type:"int64",name:"client_timestamp",id:1},{rule:"optional",type:"string",name:"client_timezone",id:2},{rule:"optional",type:"int64",name:"server_timestamp",id:3},{rule:"optional",type:"int64",name:"first_openapp_timestamp",id:4},{rule:"optional",type:"int64",name:"server_sync_timestamp",id:5},{rule:"optional",type:"int64",name:"client_sync_timestamp",id:6},{rule:"optional",type:"int64",name:"begin_end_active_timestamp",id:7}]},{name:"NetworkInfo",fields:[{rule:"optional",type:"NetworkType",name:"type",id:1},{rule:"optional",type:"MobileNetwork.Type",name:"mobile_network_type",id:2},{rule:"optional",type:"string",name:"isp",id:3},{rule:"optional",type:"string",name:"internet_ip",id:4},{rule:"optional",type:"string",name:"ssid",id:5},{rule:"optional",type:"string",name:"country",id:1001},{rule:"optional",type:"string",name:"province",id:1002},{rule:"optional",type:"string",name:"city",id:1003},{rule:"optional",type:"string",name:"owner",id:1004},{rule:"optional",type:"string",name:"internet_ipv6",id:6}],messages:[{name:"MobileNetwork",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"GPRS",id:1},{name:"EDGE",id:2},{name:"UMTS",id:3},{name:"CDMA",id:4},{name:"EVDO_0",id:5},{name:"EVDO_A",id:6},{name:"EVDO_B",id:7},{name:"HSDPA",id:8},{name:"HSUPA",id:9},{name:"HSPA",id:10},{name:"IDEN",id:11},{name:"CDMA_1xRTT",id:12},{name:"LTE",id:13},{name:"EHRPD",id:14},{name:"HSPAP",id:15},{name:"GSM",id:16},{name:"TD_SCDMA",id:17},{name:"IWLAN",id:18}]}]}],enums:[{name:"NetworkType",values:[{name:"Unknown",id:0},{name:"Wifi",id:1},{name:"Cellular",id:2},{name:"Bluetooth",id:3},{name:"Ethernet",id:4},{name:"Wimax",id:5},{name:"None",id:6}]}]},{name:"LaunchInfo",fields:[{rule:"optional",type:"string",name:"package_name",id:1},{rule:"optional",type:"string",name:"link",id:2},{rule:"optional",type:"string",name:"content_id",id:3},{rule:"optional",type:"biz.ContentType.Type",name:"content_type",id:4},{rule:"optional",type:"string",name:"content_token",id:5},{rule:"optional",type:"string",name:"launch_desc",id:6},{rule:"optional",type:"string",name:"wechatapp_lauch_source",id:7},{rule:"optional",type:"FirstSource.Type",name:"first_source",id:8},{rule:"optional",type:"SecondSource.Type",name:"second_source",id:9},{rule:"optional",type:"LaunchMethod.Type",name:"method",id:10},{rule:"optional",type:"int64",name:"launch_timestamp",id:11},{rule:"optional",type:"clientScreenType.Type",name:"client_screen_type",id:12},{rule:"optional",type:"int64",name:"client_in_screen_time",id:13}],messages:[{name:"FirstSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Widge",id:1},{name:"Push",id:2},{name:"Scheme",id:3}]}]},{name:"SecondSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Widge",id:1},{name:"NotificationFlag",id:2},{name:"Components",id:3},{name:"SystemSearch",id:4},{name:"TodayWidge",id:5},{name:"Shortcut",id:6},{name:"Push",id:7},{name:"ChannelLink",id:8},{name:"WebSearch",id:9},{name:"APPLets",id:10},{name:"APP",id:11},{name:"UniversalLink",id:12},{name:"Scheme",id:13}]}]},{name:"LaunchMethod",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Cold",id:1},{name:"Hot",id:2},{name:"Warm",id:3}]}]},{name:"clientScreenType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"OpenScreen",id:1},{name:"CloseScreen",id:2}]}]}]},{name:"AbInfo",fields:[{rule:"repeated",type:"AbExperiment",name:"experiment",id:1}],messages:[{name:"AbExperiment",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"bool",name:"include_trigger_info",id:2},{rule:"optional",type:"bool",name:"is_triggered",id:3}]}]},{name:"DetailInfo",fields:[{rule:"optional",type:"ViewInfo",name:"view",id:1},{rule:"optional",type:"bool",name:"is_active_log",id:1001}]},{name:"ViewInfo",fields:[{rule:"optional",type:"string",name:"url",id:1},{rule:"optional",type:"string",name:"referrer_url",id:2},{rule:"optional",type:"bool",name:"is_hybrid",id:3},{rule:"optional",type:"biz.EventType.Type",name:"event_type",id:4},{rule:"optional",type:"biz.Action.Type",name:"action",id:5},{rule:"optional",type:"biz.ElementLocation",name:"element_location",id:7},{rule:"repeated",type:"PageshowTransmission",name:"pageshow_trans",id:8},{rule:"optional",type:"string",name:"origin_top_level_pageid",id:9},{rule:"repeated",type:"SvipChannelTransmission",name:"svip_channel_trans",id:10},{rule:"optional",type:"string",name:"svip_channel_id",id:11},{rule:"optional",type:"int32",name:"svip_channel_level",id:12},{rule:"optional",type:"string",name:"web_url",id:13},{rule:"optional",type:"string",name:"action_name",id:14}]},{name:"SvipChannelTransmission",fields:[{rule:"optional",type:"int32",name:"svip_channel_level",id:1},{rule:"optional",type:"string",name:"svip_channel_id",id:2}]},{name:"PageshowTransmission",fields:[{rule:"optional",type:"int32",name:"page_level",id:1},{rule:"optional",type:"string",name:"page_id",id:2},{rule:"optional",type:"string",name:"content_info",id:3}]},{name:"UTMInfo",fields:[{rule:"optional",type:"string",name:"medium",id:1},{rule:"optional",type:"string",name:"source",id:2},{rule:"optional",type:"string",name:"campaign",id:3},{rule:"optional",type:"string",name:"content",id:4},{rule:"repeated",type:"string",name:"term",id:5},{rule:"optional",type:"string",name:"division",id:6},{rule:"optional",type:"string",name:"raw_term",id:7},{rule:"optional",type:"string",name:"id",id:8}]},{name:"ExtraInfo",fields:[{rule:"optional",type:"model.MediaInfo",name:"media_info",id:1},{rule:"optional",type:"model.ReadInfo",name:"read_info",id:2},{rule:"optional",type:"ShareInfo",name:"share",id:3},{rule:"optional",type:"UTMInfo",name:"utm",id:10},{rule:"optional",type:"string",name:"personalized_push_log_id",id:8},{rule:"optional",type:"string",name:"attached_info_bytes",id:11},{rule:"optional",type:"LinkInfo",name:"link",id:12},{rule:"map",type:"string",keytype:"string",name:"config_map",id:13},{rule:"optional",type:"VIPInfo",name:"vip_info",id:14},{rule:"map",type:"string",keytype:"string",name:"container_map",id:15}]},{name:"ShareInfo",fields:[{rule:"optional",type:"Type",name:"type",id:1},{rule:"optional",type:"string",name:"package_name",id:2},{rule:"optional",type:"string",name:"share_id",id:3},{rule:"optional",type:"string",name:"share_uid",id:4},{rule:"optional",type:"string",name:"share_last_uid",id:5},{rule:"optional",type:"string",name:"share_unionid",id:6},{rule:"optional",type:"string",name:"open_unionid",id:7},{rule:"optional",type:"string",name:"share_source",id:8}],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Wechat",id:1},{name:"Weibo",id:2},{name:"Dudu",id:3},{name:"QQ",id:4},{name:"WechatSession",id:5},{name:"WechatTimeline",id:6},{name:"Evernote",id:7},{name:"TencentQZone",id:8},{name:"Pocket",id:9},{name:"Momo",id:10},{name:"Youdao",id:11},{name:"Twitter",id:12},{name:"ZhihuMessage",id:13},{name:"Email",id:14},{name:"Message",id:15},{name:"CopyLink",id:16},{name:"QQComputer",id:17},{name:"QQCollect",id:18},{name:"WechatCollect",id:19},{name:"ZhihuHome",id:20},{name:"More",id:21},{name:"Pin",id:22},{name:"ImagePreview",id:23},{name:"SavePhoto",id:24},{name:"Browser",id:25}]}]},{name:"SearchInfo",fields:[{rule:"optional",type:"string",name:"raw_query",id:1},{rule:"optional",type:"string",name:"query",id:2},{rule:"optional",type:"int32",name:"estimated_num",id:3},{rule:"optional",type:"bool",name:"is_complete_query",id:4},{rule:"optional",type:"string",name:"next_query",id:5},{rule:"optional",type:"int64",name:"time_to_next_query",id:6},{rule:"optional",type:"string",name:"corrective_query",id:7},{rule:"optional",type:"string",name:"preset_query",id:8},{rule:"optional",type:"biz.SearchSource.Type",name:"search_source",id:9},{rule:"optional",type:"string",name:"input_query",id:10},{rule:"optional",type:"bool",name:"is_magi",id:11},{rule:"optional",type:"SearchMode.Type",name:"search_mode",id:12},{rule:"optional",type:"string",name:"hybrid_search_source",id:13},{rule:"optional",type:"string",name:"search_timeliness_mode",id:14},{rule:"optional",type:"int64",name:"search_valid_click_timestamp",id:15},{rule:"optional",type:"int64",name:"search_response_complete_timestamp",id:16},{rule:"optional",type:"string",name:"input_hash_id",id:17},{rule:"optional",type:"string",name:"container_name",id:18},{rule:"optional",type:"bool",name:"is_paid_answer",id:19},{rule:"optional",type:"string",name:"origin_raw_query",id:20},{rule:"optional",type:"string",name:"clarify_hashid",id:21}]},{name:"CurrencyType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"CNY",id:1},{name:"USD",id:2},{name:"EUR",id:3},{name:"JPY",id:4},{name:"BEAN",id:5}]}]},{name:"SearchMode",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Magi",id:2}]}]},{name:"LocationInfo",fields:[{rule:"optional",type:"int32",name:"mnc",id:1},{rule:"optional",type:"int32",name:"lac",id:2},{rule:"optional",type:"int32",name:"cellid",id:3},{rule:"optional",type:"double",name:"longitude",id:4},{rule:"optional",type:"double",name:"latitude",id:5}]},{name:"DeviceInfo",fields:[{rule:"optional",type:"string",name:"os_str",id:1},{rule:"optional",type:"Os.Type",name:"os_type",id:2},{rule:"optional",type:"string",name:"os_version",id:3},{rule:"optional",type:"int32",name:"os_bit",id:4},{rule:"optional",type:"int32",name:"sdk_level",id:5},{rule:"optional",type:"string",name:"model",id:6},{rule:"optional",type:"string",name:"brand",id:7},{rule:"optional",type:"string",name:"business_name",id:8},{rule:"optional",type:"bool",name:"is_root",id:9},{rule:"optional",type:"string",name:"rom_version",id:10},{rule:"optional",type:"string",name:"rom_name",id:11},{rule:"optional",type:"string",name:"cpu",id:12},{rule:"optional",type:"int32",name:"memory",id:13},{rule:"optional",type:"string",name:"mac_addr",id:14},{rule:"optional",type:"string",name:"screen",id:15},{rule:"optional",type:"int32",name:"sd_card_1",id:16},{rule:"optional",type:"int32",name:"sd_card_2",id:17},{rule:"optional",type:"string",name:"imsi_1",id:18},{rule:"optional",type:"string",name:"imsi_2",id:19},{rule:"optional",type:"bool",name:"is_notifications_enabled",id:20},{rule:"optional",type:"bool",name:"is_shake_feedback_enabled",id:21},{rule:"optional",type:"string",name:"udid",id:101},{rule:"optional",type:"string",name:"idfa",id:102},{rule:"optional",type:"string",name:"idfv",id:103},{rule:"optional",type:"string",name:"imei",id:104},{rule:"optional",type:"string",name:"oaid",id:105}]},{name:"Os",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Android",id:1},{name:"iOS",id:2},{name:"OsX",id:3},{name:"Windows",id:4}]}]},{name:"AdInfo",fields:[{rule:"optional",type:"int64",name:"ad_id",id:1},{rule:"optional",type:"int64",name:"ad_zone_id",id:2},{rule:"optional",type:"double",name:"ad_relevancy",id:3},{rule:"optional",type:"string",name:"category",id:4},{rule:"optional",type:"double",name:"cpm",id:5},{rule:"optional",type:"string",name:"cpm_encrypt",id:6},{rule:"optional",type:"string",name:"sign",id:7},{rule:"optional",type:"bool",name:"is_valid",id:8},{rule:"optional",type:"CurrencyType.Type",name:"currency_type",id:9},{rule:"optional",type:"string",name:"version",id:10},{rule:"optional",type:"float",name:"timestamp",id:11},{rule:"optional",type:"int64",name:"creative_id",id:12}]},{name:"LinkInfo",fields:[{rule:"optional",type:"string",name:"url",id:1}]},{name:"Certification",fields:[{rule:"optional",type:"Handler.Type",name:"handler_type",id:1},{rule:"optional",type:"Encrypt.Source",name:"encrypt_source",id:2},{rule:"optional",type:"string",name:"encrypt_version",id:3}],messages:[{name:"Handler",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Decrypt",id:1}]}]},{name:"Encrypt",fields:[],enums:[{name:"Source",values:[{name:"Unknown",id:0},{name:"AndroidApp",id:1},{name:"iOSApp",id:2},{name:"Web",id:3},{name:"AndroidWeb",id:4},{name:"iOSWeb",id:5},{name:"WechatBaiduApp",id:7}]}]}]},{name:"VIPInfo",fields:[{rule:"optional",type:"string",name:"sku_id",id:1},{rule:"optional",type:"string",name:"sku_type",id:2},{rule:"optional",type:"string",name:"pay_type",id:3},{rule:"optional",type:"string",name:"producer_type",id:4},{rule:"optional",type:"string",name:"svip_channel_id",id:5},{rule:"optional",type:"string",name:"svip_channel_level",id:6}]},{name:"biz",fields:[],options:{java_outer_classname:"ZaLogElementLocationProto",objc_class_prefix:"proto3"},messages:[{name:"Action",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"OpenUrl",id:1},{name:"Close",id:2},{name:"Upvote",id:7},{name:"UnUpvote",id:8},{name:"Downvote",id:9},{name:"UnDownvote",id:10},{name:"Thank",id:11},{name:"UnThank",id:12},{name:"NoHelp",id:13},{name:"UnNoHelp",id:14},{name:"Follow",id:15},{name:"UnFollow",id:16},{name:"Comment",id:17},{name:"Collect",id:18},{name:"UnCollect",id:19},{name:"Question",id:20},{name:"Answer",id:21},{name:"Invite",id:22},{name:"Ignore",id:23},{name:"Search",id:24},{name:"Like",id:25},{name:"UnLike",id:26},{name:"Share",id:27},{name:"Report",id:28},{name:"UnReport",id:29},{name:"BlockUser",id:30},{name:"UnBlockUser",id:31},{name:"Applaud",id:32},{name:"UnApplaud",id:33},{name:"Danmaku",id:34},{name:"Save",id:35},{name:"Upload",id:36},{name:"Post",id:37},{name:"Video",id:38},{name:"ClubPost",id:39},{name:"JumpOutside",id:40},{name:"Purchase",id:41},{name:"Download",id:42},{name:"Grade",id:43},{name:"UnPurchase",id:44},{name:"Pin",id:45},{name:"ReadFinished",id:46},{name:"UnIgnore",id:47},{name:"Signin",id:48},{name:"SignUp",id:49},{name:"Play",id:1001},{name:"AutoPlay",id:1002},{name:"Pause",id:1003},{name:"EndPlay",id:1004},{name:"Refresh",id:5},{name:"AutoRefresh",id:2001},{name:"AutoSave",id:2002},{name:"Expand",id:3001},{name:"Collapse",id:3002}]}]},{name:"ContentType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"User",id:1},{name:"Topic",id:2},{name:"Question",id:3},{name:"Answer",id:4},{name:"Column",id:5},{name:"Collection",id:6},{name:"Post",id:7},{name:"Comment",id:8},{name:"Roundtable",id:9},{name:"Message",id:10},{name:"Live",id:11},{name:"ZhiMessage",id:12},{name:"LiveMessage",id:13},{name:"Ad",id:14},{name:"EBook",id:15},{name:"Log",id:16},{name:"Promotion",id:17},{name:"EBookSeries",id:18},{name:"LiveCategory",id:19},{name:"ExternalAd",id:20},{name:"TopicIndex",id:21},{name:"Pin",id:22},{name:"Coupon",id:23},{name:"Event",id:24},{name:"LiveAlbum",id:25},{name:"EBookSpecial",id:26},{name:"RemixAlbum",id:27},{name:"Remix",id:28},{name:"LiveCourse",id:29},{name:"Video",id:30},{name:"Link",id:31},{name:"LiveVideo",id:32},{name:"Danmaku",id:33},{name:"Zhi",id:34},{name:"NonLinkAd",id:35},{name:"ExploreLink",id:36},{name:"Ranking",id:37},{name:"BookReview",id:38},{name:"Notification",id:39},{name:"Announcement",id:40},{name:"PresetWord",id:41},{name:"TrackMeta",id:42},{name:"Gif",id:43},{name:"EBookCategory",id:44},{name:"Position",id:45},{name:"InternalAd",id:46},{name:"LivePackage",id:47},{name:"AlchemyCourse",id:48},{name:"AlchemySection",id:49},{name:"AlchemyLesson",id:50},{name:"AlchemyHomework",id:51},{name:"AudioBook",id:52},{name:"Chapter",id:53},{name:"InstaBook",id:54},{name:"Story",id:55},{name:"InstaBookFuture",id:56},{name:"InstaBookFeature",id:57},{name:"OneBox",id:58},{name:"ProfileSignalment",id:59},{name:"ProfileSignalmentReview",id:60},{name:"ProfileMedal",id:61},{name:"OneBoxMinorHot",id:62},{name:"OneBoxMajorHot",id:63},{name:"SpecialTopic",id:64},{name:"SpecialModule",id:65},{name:"Selection",id:66},{name:"MatchMajorHot",id:67},{name:"MatchList",id:68},{name:"TimeBox",id:69},{name:"MagiBox",id:70},{name:"VideoTopic",id:71},{name:"Nlive",id:72},{name:"Conversation",id:73},{name:"Material",id:74},{name:"CommunityCensor",id:75},{name:"CommercialActivity",id:76},{name:"ActivityUsers",id:77},{name:"QuestionAsk",id:78},{name:"RemixAlbumFree",id:79},{name:"InstaBookFree",id:80},{name:"PaidContent",id:81},{name:"PaidMagazine",id:82},{name:"PaidColumn",id:83},{name:"Bundle",id:84},{name:"PptLiveFree",id:85},{name:"EbookFree",id:86},{name:"AlbumVideoFree",id:87},{name:"Review",id:88},{name:"PaidAnswer",id:89},{name:"MagazineFree",id:90},{name:"AlbumVideo",id:91},{name:"Discussion",id:92},{name:"BazaarSpecial",id:93},{name:"Notify",id:94},{name:"Literature",id:95},{name:"Club",id:96},{name:"Clubpost",id:97},{name:"Videox",id:98},{name:"Zvideo",id:99},{name:"Drama",id:100},{name:"Annotation",id:101},{name:"Note",id:102},{name:"Training",id:103},{name:"TrainingBundle",id:104},{name:"InterestAdjustmentGuide",id:105},{name:"Clubtag",id:106},{name:"Banner",id:107},{name:"OpenClass",id:108},{name:"Special",id:109},{name:"Wiki",id:110},{name:"OnlineClass",id:111},{name:"DramaCampaign",id:112},{name:"Statement",id:113},{name:"Theater",id:114},{name:"ClubMask",id:115},{name:"Manga",id:116},{name:"Description",id:117},{name:"Timeline",id:118},{name:"SearchItem",id:119},{name:"PaidPost",id:120},{name:"FeedThirdPartItem",id:121},{name:"EcomEntity",id:122},{name:"Crowdtest",id:123},{name:"Merchandise",id:124},{name:"GoodsRecommend",id:125},{name:"ZhiPlus",id:126},{name:"ZvideoCollection",id:127}]}]},{name:"Element",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Button",id:1},{name:"Text",id:3},{name:"Image",id:5},{name:"Page",id:6},{name:"Card",id:8},{name:"Audio",id:15},{name:"Video",id:16},{name:"Block",id:19},{name:"Popup",id:20},{name:"File",id:21},{name:"Input",id:22}]}]},{name:"SearchSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"History",id:1},{name:"Hot",id:2},{name:"Preset",id:3},{name:"Normal",id:4},{name:"DeterminerAnswer",id:5},{name:"DeterminerQuestion",id:6},{name:"DeterminerColumn",id:7},{name:"DeterminerTopic",id:8},{name:"DeterminerPersonal",id:9},{name:"Suggestion",id:10},{name:"SuggestionHistory",id:11},{name:"Correction",id:12},{name:"Entity",id:13},{name:"RelatedSearch",id:14},{name:"TopstoryHotSearch",id:15},{name:"HybridSearch",id:16},{name:"ShopSearch",id:17},{name:"RelatedShop",id:18},{name:"WantToSearch",id:19},{name:"Lottery",id:20},{name:"HotMore",id:21},{name:"KmDeterminerPersonal",id:22},{name:"KmPreset",id:23},{name:"KmEntity",id:24},{name:"KmHot",id:25},{name:"KmRelatedSearch",id:26},{name:"KmSuggestionHistory",id:27},{name:"KmHistory",id:28},{name:"KmSuggestion",id:29},{name:"KmNormal",id:30}]}]},{name:"EventType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Hover",id:1},{name:"SwipeLeft",id:2},{name:"SwipeRight",id:3},{name:"SwipeUp",id:4},{name:"SwipeDown",id:5},{name:"RotateScreen",id:6},{name:"Shake",id:7},{name:"DoubleClick",id:8},{name:"Drag",id:9},{name:"Click",id:10}]}]},{name:"ElementLocation",fields:[{rule:"optional",type:"Element.Type",name:"type",id:1},{rule:"optional",type:"string",name:"text",id:2},{rule:"optional",type:"ContentInfo",name:"content",id:3},{rule:"optional",type:"PageInfo",name:"page",id:4},{rule:"optional",type:"BlockInfo",name:"block",id:5},{rule:"optional",type:"CardInfo",name:"card",id:6},{rule:"optional",type:"CardInfo",name:"ParentCard",id:7},{rule:"optional",type:"ContentInfo",name:"parent_content",id:1001}]},{name:"ContentInfo",fields:[{rule:"optional",type:"string",name:"id",id:1},{rule:"optional",type:"ContentType.Type",name:"type",id:2},{rule:"optional",type:"string",name:"token",id:3},{rule:"optional",type:"string",name:"link_url",id:4,options:{deprecated:!0}},{rule:"optional",type:"string",name:"type_name",id:5}]},{name:"PageInfo",fields:[{rule:"optional",type:"string",name:"page_id",id:1},{rule:"optional",type:"int32",name:"page_level",id:2},{rule:"optional",type:"string",name:"page_name",id:3},{rule:"optional",type:"int64",name:"page_elapsed",id:4},{rule:"optional",type:"int32",name:"page_viewing_ratio",id:5},{rule:"optional",type:"ContentInfo",name:"page_content_info",id:6},{rule:"optional",type:"string",name:"page_profile",id:7},{rule:"optional",type:"int64",name:"page_index",id:8}]},{name:"CardInfo",fields:[{rule:"optional",type:"int32",name:"index",id:1},{rule:"optional",type:"string",name:"card_text",id:2},{rule:"optional",type:"bool",name:"card_has_image",id:3},{rule:"optional",type:"bool",name:"card_has_video",id:4},{rule:"optional",type:"bool",name:"card_has_text",id:5},{rule:"optional",type:"string",name:"card_link_url",id:6,options:{deprecated:!0}}]},{name:"BlockInfo",fields:[{rule:"optional",type:"string",name:"block_text",id:1}]}]},{name:"model",fields:[],options:{java_outer_classname:"ZaReadProto",objc_class_prefix:"proto3"},messages:[{name:"MediaInfo",fields:[{rule:"optional",type:"int64",name:"duration",id:1},{rule:"optional",type:"int64",name:"elapsed",id:2},{rule:"optional",type:"string",name:"play_event_identifier",id:1001},{rule:"optional",type:"string",name:"music_volume",id:1002},{rule:"optional",type:"int64",name:"progress_time",id:1003},{rule:"optional",type:"PlayMode.Type",name:"play_mode",id:1004},{rule:"optional",type:"int64",name:"transcode_time",id:1005},{rule:"optional",type:"bool",name:"is_playing",id:1008},{rule:"optional",type:"int64",name:"video_bitrate",id:1009},{rule:"optional",type:"int64",name:"video_bytes",id:1010},{rule:"optional",type:"string",name:"video_resolution",id:1011},{rule:"optional",type:"VideoQulity.Type",name:"video_quality",id:1012},{rule:"optional",type:"ScreenDirection.Type",name:"screen_direction",id:1013},{rule:"optional",type:"VideoDecode.Type",name:"video_decode",id:1014},{rule:"optional",type:"string",name:"beauty_state",id:1015},{rule:"optional",type:"BeautyInfo",name:"beauty",id:1016},{rule:"optional",type:"string",name:"attachment_zvideo_id",id:1018},{rule:"optional",type:"int64",name:"danmaku_num",id:1019},{rule:"optional",type:"VideoInfo",name:"video_info",id:2001},{rule:"optional",type:"DramaInfo",name:"drama_info",id:2002}]},{name:"VideoInfo",fields:[{rule:"optional",type:"int64",name:"video_load_time",id:1},{rule:"optional",type:"int64",name:"upload_time",id:2},{rule:"optional",type:"UploadSource.Type",name:"upload_source",id:3},{rule:"optional",type:"CreateType.Type",name:"create_type",id:4},{rule:"optional",type:"int64",name:"loading_duration",id:5},{rule:"optional",type:"string",name:"seek_data",id:6},{rule:"optional",type:"ExitWay.Type",name:"exit_way",id:7},{rule:"optional",type:"string",name:"play_error_code",id:8},{rule:"optional",type:"string",name:"play_stop_data",id:9},{rule:"optional",type:"string",name:"music_id",id:10},{rule:"optional",type:"string",name:"sound_rate",id:11},{rule:"optional",type:"bool",name:"play_result",id:12},{rule:"optional",type:"string",name:"first_buffer_progress",id:13},{rule:"optional",type:"PPTInfo",name:"ppt",id:14},{rule:"optional",type:"string",name:"video_id",id:15},{rule:"optional",type:"string",name:"video_cdn_ip",id:16},{rule:"optional",type:"string",name:"video_draft_id",id:17}]},{name:"PPTInfo",fields:[{rule:"optional",type:"string",name:"page_id",id:1,options:{deprecated:!0}},{rule:"optional",type:"string",name:"text_id",id:2,options:{deprecated:!0}},{rule:"optional",type:"string",name:"font_size",id:3,options:{deprecated:!0}},{rule:"optional",type:"string",name:"font_id",id:4,options:{deprecated:!0}},{rule:"optional",type:"string",name:"font_color",id:5,options:{deprecated:!0}},{rule:"optional",type:"string",name:"align",id:6,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"page_num",id:7,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"frame_duration",id:9,options:{deprecated:!0}},{rule:"optional",type:"string",name:"transition_id",id:10,options:{deprecated:!0}},{rule:"optional",type:"string",name:"ppt_page_duration",id:11,options:{deprecated:!0}},{rule:"optional",type:"string",name:"ppt_id",id:12,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"picture_num",id:8,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"video_composeed_duration",id:13,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"video_material_count",id:14,options:{deprecated:!0}},{rule:"optional",type:"int64",name:"subtitle_img_count",id:15,options:{deprecated:!0}}]},{name:"DramaInfo",fields:[{rule:"optional",type:"string",name:"drama_type",id:1}]},{name:"ExitWay",fields:[],enums:[{name:"Type",values:[{name:"Unknow",id:0},{name:"SeekExit",id:1},{name:"StopExit",id:2}]}]},{name:"PlayMode",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Inline",id:1},{name:"FullScreen",id:2},{name:"FloatWindow",id:3}]}]},{name:"UploadSource",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Album",id:1},{name:"Camera",id:2}]}]},{name:"VideoQulity",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Auto",id:1},{name:"HD",id:2},{name:"UHD",id:3},{name:"SD",id:4},{name:"LD",id:5},{name:"FHD",id:6}]}]},{name:"ScreenDirection",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Horizontal",id:1},{name:"Vertical",id:2}]}]},{name:"VideoDecode",fields:[],enums:[{name:"Type",values:[{name:"Unknow",id:0},{name:"HardWareDecoding",id:1},{name:"SoftWareDecoding",id:2}]}]},{name:"BeautyInfo",fields:[{rule:"optional",type:"int64",name:"skin_grinding",id:1},{rule:"optional",type:"int64",name:"white",id:2},{rule:"optional",type:"int64",name:"face_lift",id:3},{rule:"optional",type:"int64",name:"big_eye",id:4}]},{name:"CreateType",fields:[],enums:[{name:"Type",values:[{name:"Unknown",id:0},{name:"Normal",id:1},{name:"Mould",id:2},{name:"Ppt",id:3}]}]},{name:"ReadInfo",fields:[{rule:"optional",type:"int32",name:"total_pages",id:1},{rule:"optional",type:"int32",name:"current_pages",id:2},{rule:"optional",type:"int32",name:"id",id:3},{rule:"optional",type:"int64",name:"duration",id:5},{rule:"optional",type:"string",name:"font_type",id:6},{rule:"optional",type:"string",name:"font_size",id:7},{rule:"optional",type:"string",name:"line_spacing",id:8},{rule:"optional",type:"string",name:"background",id:9},{rule:"optional",type:"int32",name:"read_chapters",id:10},{rule:"optional",type:"int32",name:"read_characters",id:11},{rule:"optional",type:"bool",name:"is_own",id:12},{rule:"optional",type:"bool",name:"is_show_others_pin",id:13}]}]}]}]}},function(e,t,n){"use strict";var i=n(23),a=n(2),o=n(27),r=n(6),l=n(28),d=Object.prototype.toString;function s(e){if(!(this instanceof s))return new s(e);this.options=a.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(r[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=i.deflateSetDictionary(this.strm,m)))throw new Error(r[n]);this._dict_set=!0}}function m(e,t){var n=new s(t);if(n.push(e,!0),n.err)throw n.msg||r[n.err];return n.result}s.prototype.push=function(e,t){var n,r,l=this.strm,s=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?l.input=o.string2buf(e):"[object ArrayBuffer]"===d.call(e)?l.input=new Uint8Array(e):l.input=e,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new a.Buf8(s),l.next_out=0,l.avail_out=s),1!==(n=i.deflate(l,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==l.avail_out&&(0!==l.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(o.buf2binstring(a.shrinkBuf(l.output,l.next_out))):this.onData(a.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||0===l.avail_out)&&1!==n);return 4===r?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),l.avail_out=0,!0)},s.prototype.onData=function(e){this.chunks.push(e)},s.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=s,t.deflate=m,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,m(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,m(e,t)}},function(e,t,n){"use strict";var i=function(){function e(e){var t=this;void 0===e&&(e={}),this.successCallbacks_=[],this.errorCallbacks_=[],this.completeCallbacks_=[];var n=this.xhr_=new XMLHttpRequest;n.open(e.method,e.url);var i=e.headers;i&&Object.keys(i).forEach((function(e){n.setRequestHeader(e,i[e])})),n.onerror=function(){t.runCallbacks_(t.errorCallbacks_),t.runCallbacks_(t.completeCallbacks_)},n.onload=function(){t.isOk()?t.runCallbacks_(t.successCallbacks_):t.runCallbacks_(t.errorCallbacks_),t.runCallbacks_(t.completeCallbacks_)}}var t=e.prototype;return t.send=function(e){this.xhr_.send(e)},t.addCallback_=function(e,t,n){this.xhr_.readyState===XMLHttpRequest.prototype.DONE?n()&&t.call(this,this.getResponse()):e.push(t)},t.getResponse=function(){var e=this.xhr_.responseText;return function(e){if(204===e.status)return!1;var t=e.getResponseHeader("content-type");return t&&-1!==t.indexOf("application/json")}(this.xhr_)?(this.responseJson||(this.responseJson=JSON.parse(e)),this.responseJson):e},t.runCallbacks_=function(e){for(;e.length;){e.shift().call(this,this.getResponse())}},t.isOk=function(){return this.xhr_.status>=200&&this.xhr_.status<300},t.onSuccess=function(e){var t=this;this.addCallback_(this.successCallbacks_,e,(function(){return t.isOk()}))},t.onError=function(e){var t=this;this.addCallback_(this.errorCallbacks_,e,(function(){return!t.isOk()}))},t.onComplete=function(e){this.addCallback_(this.completeCallbacks_,e,(function(){return!0}))},e}();t.a=i},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var i=navigator.cookieEnabled&&"DataView"in e&&"ArrayBuffer"in e&&"XMLHttpRequest"in e&&"withCredentials"in new XMLHttpRequest}).call(this,n(3))},function(e,t,n){e.exports=n(16)},function(e,t,n){var i=n(29).Client;e.exports=new i({useProto3:!1}),e.exports.Client=i},function(e,t){e.exports=function(){return function(){}}},function(e,t,n){(function(t){var n,i=t.crypto||t.msCrypto;if(i&&i.getRandomValues){var a=new Uint8Array(16);n=function(){return i.getRandomValues(a),a}}if(!n){var o=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=n}).call(this,n(3))},function(e,t){var n,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}}();var d,s=[],m=!1,p=-1;function u(){m&&d&&(m=!1,d.length?s=d.concat(s):p=-1,s.length&&f())}function f(){if(!m){var e=l(u);m=!0;for(var t=s.length;t;){for(d=s,s=[];++p<t;)d&&d[p].run();p=-1,t=s.length}d=null,m=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function c(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new y(e,t)),1!==s.length||m||l(f)},y.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=c,a.addListener=c,a.once=c,a.off=c,a.removeListener=c,a.removeAllListeners=c,a.emit=c,a.prependListener=c,a.prependOnceListener=c,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){var i,a,o;a=[n(21)],void 0===(o="function"==typeof(i=function(e){"use strict";var t=function(e,n,a){if(void 0===e&&(e=t.DEFAULT_CAPACITY),void 0===n&&(n=t.DEFAULT_ENDIAN),void 0===a&&(a=t.DEFAULT_NOASSERT),!a){if((e|=0)<0)throw RangeError("Illegal capacity");n=!!n,a=!!a}this.buffer=0===e?i:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=n,this.noAssert=a};t.VERSION="5.0.1",t.LITTLE_ENDIAN=!0,t.BIG_ENDIAN=!1,t.DEFAULT_CAPACITY=16,t.DEFAULT_ENDIAN=t.BIG_ENDIAN,t.DEFAULT_NOASSERT=!1,t.Long=e||null;var n=t.prototype;n.__isByteBuffer__,Object.defineProperty(n,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var i=new ArrayBuffer(0),a=String.fromCharCode;function o(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function r(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+a.apply(String,e);e.length+arguments.length>1024&&(t.push(a.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}function l(e,t,n,i,a){var o,r,l=8*a-i-1,d=(1<<l)-1,s=d>>1,m=-7,p=n?a-1:0,u=n?-1:1,f=e[t+p];for(p+=u,o=f&(1<<-m)-1,f>>=-m,m+=l;m>0;o=256*o+e[t+p],p+=u,m-=8);for(r=o&(1<<-m)-1,o>>=-m,m+=i;m>0;r=256*r+e[t+p],p+=u,m-=8);if(0===o)o=1-s;else{if(o===d)return r?NaN:1/0*(f?-1:1);r+=Math.pow(2,i),o-=s}return(f?-1:1)*r*Math.pow(2,o-i)}function d(e,t,n,i,a,o){var r,l,d,s=8*o-a-1,m=(1<<s)-1,p=m>>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,y=i?1:-1,c=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,r=m):(r=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-r))<1&&(r--,d*=2),(t+=r+p>=1?u/d:u*Math.pow(2,1-p))*d>=2&&(r++,d/=2),r+p>=m?(l=0,r=m):r+p>=1?(l=(t*d-1)*Math.pow(2,a),r+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,a),r=0));a>=8;e[n+f]=255&l,f+=y,l/=256,a-=8);for(r=r<<a|l,s+=a;s>0;e[n+f]=255&r,f+=y,r/=256,s-=8);e[n+f-y]|=128*c}t.accessor=function(){return Uint8Array},t.allocate=function(e,n,i){return new t(e,n,i)},t.concat=function(e,n,i,a){"boolean"!=typeof n&&"string"==typeof n||(a=i,i=n,n=void 0);for(var o,r=0,l=0,d=e.length;l<d;++l)t.isByteBuffer(e[l])||(e[l]=t.wrap(e[l],n)),(o=e[l].limit-e[l].offset)>0&&(r+=o);if(0===r)return new t(0,i,a);var s,m=new t(r,i,a);for(l=0;l<d;)(o=(s=e[l++]).limit-s.offset)<=0||(m.view.set(s.view.subarray(s.offset,s.limit),m.offset),m.offset+=o);return m.limit=m.offset,m.offset=0,m},t.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},t.type=function(){return ArrayBuffer},t.wrap=function(e,i,a,o){if("string"!=typeof i&&(o=a,a=i,i=void 0),"string"==typeof e)switch(void 0===i&&(i="utf8"),i){case"base64":return t.fromBase64(e,a);case"hex":return t.fromHex(e,a);case"binary":return t.fromBinary(e,a);case"utf8":return t.fromUTF8(e,a);case"debug":return t.fromDebug(e,a);default:throw Error("Unsupported encoding: "+i)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var r;if(t.isByteBuffer(e))return(r=n.clone.call(e)).markedOffset=-1,r;if(e instanceof Uint8Array)r=new t(0,a,o),e.length>0&&(r.buffer=e.buffer,r.offset=e.byteOffset,r.limit=e.byteOffset+e.byteLength,r.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)r=new t(0,a,o),e.byteLength>0&&(r.buffer=e,r.offset=0,r.limit=e.byteLength,r.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");(r=new t(e.length,a,o)).limit=e.length;for(var l=0;l<e.length;++l)r.view[l]=e[l]}return r},n.writeBitSet=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,a=t,o=e.length,r=o>>3,l=0;for(t+=this.writeVarint32(o,t);r--;)i=1&!!e[l++]|(1&!!e[l++])<<1|(1&!!e[l++])<<2|(1&!!e[l++])<<3|(1&!!e[l++])<<4|(1&!!e[l++])<<5|(1&!!e[l++])<<6|(1&!!e[l++])<<7,this.writeByte(i,t++);if(l<o){var d=0;for(i=0;l<o;)i|=(1&!!e[l++])<<d++;this.writeByte(i,t++)}return n?(this.offset=t,this):t-a},n.readBitSet=function(e){var t=void 0===e;t&&(e=this.offset);var n,i=this.readVarint32(e),a=i.value,o=a>>3,r=0,l=[];for(e+=i.length;o--;)n=this.readByte(e++),l[r++]=!!(1&n),l[r++]=!!(2&n),l[r++]=!!(4&n),l[r++]=!!(8&n),l[r++]=!!(16&n),l[r++]=!!(32&n),l[r++]=!!(64&n),l[r++]=!!(128&n);if(r<a){var d=0;for(n=this.readByte(e++);r<a;)l[r++]=!!(n>>d++&1)}return t&&(this.offset=e),l},n.readBytes=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}var i=this.slice(t,t+e);return n&&(this.offset+=e),i},n.writeBytes=n.append,n.writeInt8=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=1,this.view[t]=e,n&&(this.offset+=1),this},n.writeByte=n.writeInt8,n.readInt8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=this.view[e];return 128==(128&n)&&(n=-(255-n+1)),t&&(this.offset+=1),n},n.readByte=n.readInt8,n.writeUint8=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=1,this.view[t]=e,n&&(this.offset+=1),this},n.writeUInt8=n.writeUint8,n.readUint8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=this.view[e];return t&&(this.offset+=1),n},n.readUInt8=n.readUint8,n.writeInt16=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),n&&(this.offset+=2),this},n.writeShort=n.writeInt16,n.readInt16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var n=0;return this.littleEndian?(n=this.view[e],n|=this.view[e+1]<<8):(n=this.view[e]<<8,n|=this.view[e+1]),32768==(32768&n)&&(n=-(65535-n+1)),t&&(this.offset+=2),n},n.readShort=n.readInt16,n.writeUint16=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),n&&(this.offset+=2),this},n.writeUInt16=n.writeUint16,n.readUint16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var n=0;return this.littleEndian?(n=this.view[e],n|=this.view[e+1]<<8):(n=this.view[e]<<8,n|=this.view[e+1]),t&&(this.offset+=2),n},n.readUInt16=n.readUint16,n.writeInt32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),n&&(this.offset+=4),this},n.writeInt=n.writeInt32,n.readInt32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=0;return this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0):(n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0),n|=0,t&&(this.offset+=4),n},n.readInt=n.readInt32,n.writeUint32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),n&&(this.offset+=4),this},n.writeUInt32=n.writeUint32,n.readUint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=0;return this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0):(n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0),t&&(this.offset+=4),n},n.readUInt32=n.readUint32,e&&(n.writeInt64=function(t,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),n+=8;var a=this.buffer.byteLength;n>a&&this.resize((a*=2)>n?a:n),n-=8;var o=t.low,r=t.high;return this.littleEndian?(this.view[n+3]=o>>>24&255,this.view[n+2]=o>>>16&255,this.view[n+1]=o>>>8&255,this.view[n]=255&o,n+=4,this.view[n+3]=r>>>24&255,this.view[n+2]=r>>>16&255,this.view[n+1]=r>>>8&255,this.view[n]=255&r):(this.view[n]=r>>>24&255,this.view[n+1]=r>>>16&255,this.view[n+2]=r>>>8&255,this.view[n+3]=255&r,n+=4,this.view[n]=o>>>24&255,this.view[n+1]=o>>>16&255,this.view[n+2]=o>>>8&255,this.view[n+3]=255&o),i&&(this.offset+=8),this},n.writeLong=n.writeInt64,n.readInt64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var i=0,a=0;this.littleEndian?(i=this.view[t+2]<<16,i|=this.view[t+1]<<8,i|=this.view[t],i+=this.view[t+3]<<24>>>0,t+=4,a=this.view[t+2]<<16,a|=this.view[t+1]<<8,a|=this.view[t],a+=this.view[t+3]<<24>>>0):(a=this.view[t+1]<<16,a|=this.view[t+2]<<8,a|=this.view[t+3],a+=this.view[t]<<24>>>0,t+=4,i=this.view[t+1]<<16,i|=this.view[t+2]<<8,i|=this.view[t+3],i+=this.view[t]<<24>>>0);var o=new e(i,a,!1);return n&&(this.offset+=8),o},n.readLong=n.readInt64,n.writeUint64=function(t,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),n+=8;var a=this.buffer.byteLength;n>a&&this.resize((a*=2)>n?a:n),n-=8;var o=t.low,r=t.high;return this.littleEndian?(this.view[n+3]=o>>>24&255,this.view[n+2]=o>>>16&255,this.view[n+1]=o>>>8&255,this.view[n]=255&o,n+=4,this.view[n+3]=r>>>24&255,this.view[n+2]=r>>>16&255,this.view[n+1]=r>>>8&255,this.view[n]=255&r):(this.view[n]=r>>>24&255,this.view[n+1]=r>>>16&255,this.view[n+2]=r>>>8&255,this.view[n+3]=255&r,n+=4,this.view[n]=o>>>24&255,this.view[n+1]=o>>>16&255,this.view[n+2]=o>>>8&255,this.view[n+3]=255&o),i&&(this.offset+=8),this},n.writeUInt64=n.writeUint64,n.readUint64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var i=0,a=0;this.littleEndian?(i=this.view[t+2]<<16,i|=this.view[t+1]<<8,i|=this.view[t],i+=this.view[t+3]<<24>>>0,t+=4,a=this.view[t+2]<<16,a|=this.view[t+1]<<8,a|=this.view[t],a+=this.view[t+3]<<24>>>0):(a=this.view[t+1]<<16,a|=this.view[t+2]<<8,a|=this.view[t+3],a+=this.view[t]<<24>>>0,t+=4,i=this.view[t+1]<<16,i|=this.view[t+2]<<8,i|=this.view[t+3],i+=this.view[t]<<24>>>0);var o=new e(i,a,!0);return n&&(this.offset+=8),o},n.readUInt64=n.readUint64),n.writeFloat32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=4,d(this.view,e,t,this.littleEndian,23,4),n&&(this.offset+=4),this},n.writeFloat=n.writeFloat32,n.readFloat32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=l(this.view,e,this.littleEndian,23,4);return t&&(this.offset+=4),n},n.readFloat=n.readFloat32,n.writeFloat64=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=8;var i=this.buffer.byteLength;return t>i&&this.resize((i*=2)>t?i:t),t-=8,d(this.view,e,t,this.littleEndian,52,8),n&&(this.offset+=8),this},n.writeDouble=n.writeFloat64,n.readFloat64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=l(this.view,e,this.littleEndian,52,8);return t&&(this.offset+=8),n},n.readDouble=n.readFloat64,t.MAX_VARINT32_BYTES=5,t.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5},t.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},t.zigZagDecode32=function(e){return e>>>1^-(1&e)|0},n.writeVarint32=function(e,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var a,o=t.calculateVarint32(e);n+=o;var r=this.buffer.byteLength;for(n>r&&this.resize((r*=2)>n?r:n),n-=o,e>>>=0;e>=128;)a=127&e|128,this.view[n++]=a,e>>>=7;return this.view[n++]=e,i?(this.offset=n,this):o},n.writeVarint32ZigZag=function(e,n){return this.writeVarint32(t.zigZagEncode32(e),n)},n.readVarint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n,i=0,a=0;do{if(!this.noAssert&&e>this.limit){var o=Error("Truncated");throw o.truncated=!0,o}n=this.view[e++],i<5&&(a|=(127&n)<<7*i),++i}while(0!=(128&n));return a|=0,t?(this.offset=e,a):{value:a,length:i}},n.readVarint32ZigZag=function(e){var n=this.readVarint32(e);return"object"==typeof n?n.value=t.zigZagDecode32(n.value):n=t.zigZagDecode32(n),n},e&&(t.MAX_VARINT64_BYTES=10,t.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var n=t.toInt()>>>0,i=t.shiftRightUnsigned(28).toInt()>>>0,a=t.shiftRightUnsigned(56).toInt()>>>0;return 0==a?0==i?n<16384?n<128?1:2:n<1<<21?3:4:i<16384?i<128?5:6:i<1<<21?7:8:a<128?9:10},t.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},t.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},n.writeVarint64=function(n,i){var a=void 0===i;if(a&&(i=this.offset),!this.noAssert){if("number"==typeof n)n=e.fromNumber(n);else if("string"==typeof n)n=e.fromString(n);else if(!(n&&n instanceof e))throw TypeError("Illegal value: "+n+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof n?n=e.fromNumber(n,!1):"string"==typeof n?n=e.fromString(n,!1):!1!==n.unsigned&&(n=n.toSigned());var o=t.calculateVarint64(n),r=n.toInt()>>>0,l=n.shiftRightUnsigned(28).toInt()>>>0,d=n.shiftRightUnsigned(56).toInt()>>>0;i+=o;var s=this.buffer.byteLength;switch(i>s&&this.resize((s*=2)>i?s:i),i-=o,o){case 10:this.view[i+9]=d>>>7&1;case 9:this.view[i+8]=9!==o?128|d:127&d;case 8:this.view[i+7]=8!==o?l>>>21|128:l>>>21&127;case 7:this.view[i+6]=7!==o?l>>>14|128:l>>>14&127;case 6:this.view[i+5]=6!==o?l>>>7|128:l>>>7&127;case 5:this.view[i+4]=5!==o?128|l:127&l;case 4:this.view[i+3]=4!==o?r>>>21|128:r>>>21&127;case 3:this.view[i+2]=3!==o?r>>>14|128:r>>>14&127;case 2:this.view[i+1]=2!==o?r>>>7|128:r>>>7&127;case 1:this.view[i]=1!==o?128|r:127&r}return a?(this.offset+=o,this):o},n.writeVarint64ZigZag=function(e,n){return this.writeVarint64(t.zigZagEncode64(e),n)},n.readVarint64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var i=t,a=0,o=0,r=0,l=0;if(a=127&(l=this.view[t++]),128&l&&(a|=(127&(l=this.view[t++]))<<7,(128&l||this.noAssert&&void 0===l)&&(a|=(127&(l=this.view[t++]))<<14,(128&l||this.noAssert&&void 0===l)&&(a|=(127&(l=this.view[t++]))<<21,(128&l||this.noAssert&&void 0===l)&&(o=127&(l=this.view[t++]),(128&l||this.noAssert&&void 0===l)&&(o|=(127&(l=this.view[t++]))<<7,(128&l||this.noAssert&&void 0===l)&&(o|=(127&(l=this.view[t++]))<<14,(128&l||this.noAssert&&void 0===l)&&(o|=(127&(l=this.view[t++]))<<21,(128&l||this.noAssert&&void 0===l)&&(r=127&(l=this.view[t++]),(128&l||this.noAssert&&void 0===l)&&(r|=(127&(l=this.view[t++]))<<7,128&l||this.noAssert&&void 0===l))))))))))throw Error("Buffer overrun");var d=e.fromBits(a|o<<28,o>>>4|r<<24,!1);return n?(this.offset=t,d):{value:d,length:t-i}},n.readVarint64ZigZag=function(n){var i=this.readVarint64(n);return i&&i.value instanceof e?i.value=t.zigZagDecode64(i.value):i=t.zigZagDecode64(i),i}),n.writeCString=function(e,t){var n=void 0===t;n&&(t=this.offset);var i,a=e.length;if(!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(i=0;i<a;++i)if(0===e.charCodeAt(i))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}a=m.calculateUTF16asUTF8(o(e))[1],t+=a+1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=a+1,m.encodeUTF16toUTF8(o(e),function(e){this.view[t++]=e}.bind(this)),this.view[t++]=0,n?(this.offset=t,this):a},n.readCString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n,i=e,a=-1;return m.decodeUTF8toUTF16(function(){if(0===a)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(a=this.view[e++])?null:a}.bind(this),n=r(),!0),t?(this.offset=e,n()):{string:n(),length:e-i}},n.writeIString=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,a=t;i=m.calculateUTF16asUTF8(o(e),this.noAssert)[1],t+=4+i;var r=this.buffer.byteLength;if(t>r&&this.resize((r*=2)>t?r:t),t-=4+i,this.littleEndian?(this.view[t+3]=i>>>24&255,this.view[t+2]=i>>>16&255,this.view[t+1]=i>>>8&255,this.view[t]=255&i):(this.view[t]=i>>>24&255,this.view[t+1]=i>>>16&255,this.view[t+2]=i>>>8&255,this.view[t+3]=255&i),t+=4,m.encodeUTF16toUTF8(o(e),function(e){this.view[t++]=e}.bind(this)),t!==a+4+i)throw RangeError("Illegal range: Truncated data, "+t+" == "+(t+4+i));return n?(this.offset=t,this):t-a},n.readIString=function(e){var n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=e,a=this.readUint32(e),o=this.readUTF8String(a,t.METRICS_BYTES,e+=4);return e+=o.length,n?(this.offset=e,o.string):{string:o.string,length:e-i}},t.METRICS_CHARS="c",t.METRICS_BYTES="b",n.writeUTF8String=function(e,t){var n,i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var a=t;n=m.calculateUTF16asUTF8(o(e))[1],t+=n;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=n,m.encodeUTF16toUTF8(o(e),function(e){this.view[t++]=e}.bind(this)),i?(this.offset=t,this):t-a},n.writeString=n.writeUTF8String,t.calculateUTF8Chars=function(e){return m.calculateUTF16asUTF8(o(e))[0]},t.calculateUTF8Bytes=function(e){return m.calculateUTF16asUTF8(o(e))[1]},t.calculateString=t.calculateUTF8Bytes,n.readUTF8String=function(e,n,i){"number"==typeof n&&(i=n,n=void 0);var a=void 0===i;if(a&&(i=this.offset),void 0===n&&(n=t.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var o,l=0,d=i;if(n===t.METRICS_CHARS){if(o=r(),m.decodeUTF8(function(){return l<e&&i<this.limit?this.view[i++]:null}.bind(this),(function(e){++l,m.UTF8toUTF16(e,o)})),l!==e)throw RangeError("Illegal range: Truncated data, "+l+" == "+e);return a?(this.offset=i,o()):{string:o(),length:i-d}}if(n===t.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+"+e+") <= "+this.buffer.byteLength)}var s=i+e;if(m.decodeUTF8toUTF16(function(){return i<s?this.view[i++]:null}.bind(this),o=r(),this.noAssert),i!==s)throw RangeError("Illegal range: Truncated data, "+i+" == "+s);return a?(this.offset=i,o()):{string:o(),length:i-d}}throw TypeError("Unsupported metrics: "+n)},n.readString=n.readUTF8String,n.writeVString=function(e,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var a,r,l=n;a=m.calculateUTF16asUTF8(o(e),this.noAssert)[1],r=t.calculateVarint32(a),n+=r+a;var d=this.buffer.byteLength;if(n>d&&this.resize((d*=2)>n?d:n),n-=r+a,n+=this.writeVarint32(a,n),m.encodeUTF16toUTF8(o(e),function(e){this.view[n++]=e}.bind(this)),n!==l+a+r)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+a+r));return i?(this.offset=n,this):n-l},n.readVString=function(e){var n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=e,a=this.readVarint32(e),o=this.readUTF8String(a.value,t.METRICS_BYTES,e+=a.length);return e+=o.length,n?(this.offset=e,o.string):{string:o.string,length:e-i}},n.append=function(e,n,i){"number"!=typeof n&&"string"==typeof n||(i=n,n=void 0);var a=void 0===i;if(a&&(i=this.offset),!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,n));var o=e.limit-e.offset;if(o<=0)return this;i+=o;var r=this.buffer.byteLength;return i>r&&this.resize((r*=2)>i?r:i),i-=o,this.view.set(e.view.subarray(e.offset,e.limit),i),e.offset+=o,a&&(this.offset+=o),this},n.appendTo=function(e,t){return e.append(this,t),this},n.assert=function(e){return this.noAssert=!e,this},n.capacity=function(){return this.buffer.byteLength},n.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},n.clone=function(e){var n=new t(0,this.littleEndian,this.noAssert);return e?(n.buffer=new ArrayBuffer(this.buffer.byteLength),n.view=new Uint8Array(n.buffer)):(n.buffer=this.buffer,n.view=this.view),n.offset=this.offset,n.markedOffset=this.markedOffset,n.limit=this.limit,n},n.compact=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(0===e&&t===this.buffer.byteLength)return this;var n=t-e;if(0===n)return this.buffer=i,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this;var a=new ArrayBuffer(n),o=new Uint8Array(a);return o.set(this.view.subarray(e,t)),this.buffer=a,this.view=o,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=n,this},n.copy=function(e,n){if(void 0===e&&(e=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,e<0||e>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+n+" <= "+this.buffer.byteLength)}if(e===n)return new t(0,this.littleEndian,this.noAssert);var i=n-e,a=new t(i,this.littleEndian,this.noAssert);return a.offset=0,a.limit=i,a.markedOffset>=0&&(a.markedOffset-=e),this.copyTo(a,0,e,n),a},n.copyTo=function(e,n,i,a){var o,r;if(!this.noAssert&&!t.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(n=(r=void 0===n)?e.offset:0|n,i=(o=void 0===i)?this.offset:0|i,a=void 0===a?this.limit:0|a,n<0||n>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+n+" <= "+e.buffer.byteLength);if(i<0||a>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+i+" <= "+this.buffer.byteLength);var l=a-i;return 0===l?e:(e.ensureCapacity(n+l),e.view.set(this.view.subarray(i,a),n),o&&(this.offset+=l),r&&(e.offset+=l),this)},n.ensureCapacity=function(e){var t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this},n.fill=function(e,t,n){var i=void 0===t;if(i&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(t>=n)return this;for(;t<n;)this.view[t++]=e;return i&&(this.offset=t),this},n.flip=function(){return this.limit=this.offset,this.offset=0,this},n.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},n.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},n.LE=function(e){return this.littleEndian=void 0===e||!!e,this},n.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},n.prepend=function(e,n,i){"number"!=typeof n&&"string"==typeof n||(i=n,n=void 0);var a=void 0===i;if(a&&(i=this.offset),!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,n));var o=e.limit-e.offset;if(o<=0)return this;var r=o-i;if(r>0){var l=new ArrayBuffer(this.buffer.byteLength+r),d=new Uint8Array(l);d.set(this.view.subarray(i,this.buffer.byteLength),o),this.buffer=l,this.view=d,this.offset+=r,this.markedOffset>=0&&(this.markedOffset+=r),this.limit+=r,i+=r}else new Uint8Array(this.buffer);return this.view.set(e.view.subarray(e.offset,e.limit),i-o),e.offset=e.limit,a&&(this.offset-=o),this},n.prependTo=function(e,t){return e.prepend(this,t),this},n.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},n.remaining=function(){return this.limit-this.offset},n.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},n.resize=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}if(this.buffer.byteLength<e){var t=new ArrayBuffer(e),n=new Uint8Array(t);n.set(this.view),this.buffer=t,this.view=n}return this},n.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},n.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},n.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n=this.clone();return n.offset=e,n.limit=t,n},n.toBuffer=function(e){var t=this.offset,n=this.limit;if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal limit: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(!e&&0===t&&n===this.buffer.byteLength)return this.buffer;if(t===n)return i;var a=new ArrayBuffer(n-t);return new Uint8Array(a).set(new Uint8Array(this.buffer).subarray(t,n),0),a},n.toArrayBuffer=n.toBuffer,n.toString=function(e,t,n){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(n=t=e="utf8"),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var s=function(){for(var e={},t=[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,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,48,49,50,51,52,53,54,55,56,57,43,47],n=[],i=0,a=t.length;i<a;++i)n[t[i]]=i;return e.encode=function(e,n){for(var i,a;null!==(i=e());)n(t[i>>2&63]),a=(3&i)<<4,null!==(i=e())?(n(t[63&((a|=i>>4&15)|i>>4&15)]),a=(15&i)<<2,null!==(i=e())?(n(t[63&(a|i>>6&3)]),n(t[63&i])):(n(t[63&a]),n(61))):(n(t[63&a]),n(61),n(61))},e.decode=function(e,t){var i,a,o;function r(e){throw Error("Illegal character code: "+e)}for(;null!==(i=e());)if(void 0===(a=n[i])&&r(i),null!==(i=e())&&(void 0===(o=n[i])&&r(i),t(a<<2>>>0|(48&o)>>4),null!==(i=e()))){if(void 0===(a=n[i])){if(61===i)break;r(i)}if(t((15&o)<<4>>>0|(60&a)>>2),null!==(i=e())){if(void 0===(o=n[i])){if(61===i)break;r(i)}t((3&a)<<6>>>0|o)}}},e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},e}();n.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var n;return s.encode(function(){return e<t?this.view[e++]:null}.bind(this),n=r()),n()},t.fromBase64=function(e,n){if("string"!=typeof e)throw TypeError("str");var i=new t(e.length/4*3,n),a=0;return s.decode(o(e),(function(e){i.view[a++]=e})),i.limit=a,i},t.btoa=function(e){return t.fromBinary(e).toBase64()},t.atob=function(e){return t.fromBase64(e).toBinary()},n.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var n=[],i=[];e<t;)n.push(this.view[e++]),n.length>=1024&&(i.push(String.fromCharCode.apply(String,n)),n=[]);return i.join("")+String.fromCharCode.apply(String,n)},t.fromBinary=function(e,n){if("string"!=typeof e)throw TypeError("str");for(var i,a=0,o=e.length,r=new t(o,n);a<o;){if((i=e.charCodeAt(a))>255)throw RangeError("illegal char code: "+i);r.view[a++]=i}return r.limit=o,r},n.toDebug=function(e){for(var t,n=-1,i=this.buffer.byteLength,a="",o="",r="";n<i;){if(-1!==n&&(a+=(t=this.view[n])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&t<127?String.fromCharCode(t):".")),++n,e&&n>0&&n%16==0&&n!==i){for(;a.length<51;)a+=" ";r+=a+o+"\n",a=o=""}n===this.offset&&n===this.limit?a+=n===this.markedOffset?"!":"|":n===this.offset?a+=n===this.markedOffset?"[":"<":n===this.limit?a+=n===this.markedOffset?"]":">":a+=n===this.markedOffset?"'":e||0!==n&&n!==i?" ":""}if(e&&" "!==a){for(;a.length<51;)a+=" ";r+=a+o+"\n"}return e?r:a},t.fromDebug=function(e,n,i){for(var a,o,r=e.length,l=new t((r+1)/3|0,n,i),d=0,s=0,m=!1,p=!1,u=!1,f=!1,y=!1;d<r;){switch(a=e.charAt(d++)){case"!":if(!i){if(p||u||f){y=!0;break}p=u=f=!0}l.offset=l.markedOffset=l.limit=s,m=!1;break;case"|":if(!i){if(p||f){y=!0;break}p=f=!0}l.offset=l.limit=s,m=!1;break;case"[":if(!i){if(p||u){y=!0;break}p=u=!0}l.offset=l.markedOffset=s,m=!1;break;case"<":if(!i){if(p){y=!0;break}p=!0}l.offset=s,m=!1;break;case"]":if(!i){if(f||u){y=!0;break}f=u=!0}l.limit=l.markedOffset=s,m=!1;break;case">":if(!i){if(f){y=!0;break}f=!0}l.limit=s,m=!1;break;case"'":if(!i){if(u){y=!0;break}u=!0}l.markedOffset=s,m=!1;break;case" ":m=!1;break;default:if(!i&&m){y=!0;break}if(o=parseInt(a+e.charAt(d++),16),!i&&(isNaN(o)||o<0||o>255))throw TypeError("Illegal str: Not a debug encoded string");l.view[s++]=o,m=!0}if(y)throw TypeError("Illegal str: Invalid symbol at "+d)}if(!i){if(!p||!f)throw TypeError("Illegal str: Missing offset or limit");if(s<l.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+s+" < "+r)}return l},n.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var n,i=new Array(t-e);e<t;)(n=this.view[e++])<16?i.push("0",n.toString(16)):i.push(n.toString(16));return i.join("")},t.fromHex=function(e,n,i){if(!i){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var a,o=e.length,r=new t(o/2|0,n),l=0,d=0;l<o;l+=2){if(a=parseInt(e.substring(l,l+2),16),!i&&(!isFinite(a)||a<0||a>255))throw TypeError("Illegal str: Contains non-hex characters");r.view[d++]=a}return r.limit=d,r};var m=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null},decodeUTF8:function(e,t){for(var n,i,a,o,r=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(n=e());)if(0==(128&n))t(n);else if(192==(224&n))null===(i=e())&&r([n,i]),t((31&n)<<6|63&i);else if(224==(240&n))(null===(i=e())||null===(a=e()))&&r([n,i,a]),t((15&n)<<12|(63&i)<<6|63&a);else{if(240!=(248&n))throw RangeError("Illegal starting byte: "+n);(null===(i=e())||null===(a=e())||null===(o=e()))&&r([n,i,a,o]),t((7&n)<<18|(63&i)<<12|(63&a)<<6|63&o)}},UTF16toUTF8:function(e,t){for(var n,i=null;null!==(n=null!==i?i:e());)n>=55296&&n<=57343&&null!==(i=e())&&i>=56320&&i<=57343?(t(1024*(n-55296)+i-56320+65536),i=null):t(n);null!==i&&t(i)},UTF8toUTF16:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<=65535?t(n):(t(55296+((n-=65536)>>10)),t(n%1024+56320)),n=null},encodeUTF16toUTF8:function(t,n){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,n)}))},decodeUTF8toUTF16:function(t,n){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,n)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,n=0;null!==(t=e());)n+=t<128?1:t<2048?2:t<65536?3:4;return n},calculateUTF16asUTF8:function(t){var n=0,i=0;return e.UTF16toUTF8(t,(function(e){++n,i+=e<128?1:e<2048?2:e<65536?3:4})),[n,i]}};return e}();return n.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n;try{m.decodeUTF8toUTF16(function(){return e<t?this.view[e++]:null}.bind(this),n=r())}catch(n){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return n()},t.fromUTF8=function(e,n,i){if(!i&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var a=new t(m.calculateUTF16asUTF8(o(e),!0)[1],n,i),r=0;return m.encodeUTF16toUTF8(o(e),(function(e){a.view[r++]=e})),a.limit=r,a},t})?i.apply(t,a):i)||(e.exports=o)},function(e,t,n){var i,a,o;a=[],void 0===(o="function"==typeof(i=function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var n={},i={};function a(e,t){var a,o,l;return t?(l=0<=(e>>>=0)&&e<256)&&(o=i[e])?o:(a=r(e,(0|e)<0?-1:0,!0),l&&(i[e]=a),a):(l=-128<=(e|=0)&&e<128)&&(o=n[e])?o:(a=r(e,e<0?-1:0,!1),l&&(n[e]=a),a)}function o(e,t){if(isNaN(e)||!isFinite(e))return t?h:c;if(t){if(e<0)return h;if(e>=u)return w}else{if(e<=-f)return T;if(e+1>=f)return b}return e<0?o(-e,t).neg():r(e%p|0,e/p|0,t)}function r(t,n,i){return new e(t,n,i)}e.fromInt=a,e.fromNumber=o,e.fromBits=r;var l=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return c;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var i;if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return d(e.substring(1),t,n).neg();for(var a=o(l(n,8)),r=c,s=0;s<e.length;s+=8){var m=Math.min(8,e.length-s),p=parseInt(e.substring(s,s+m),n);if(m<8){var u=o(l(n,m));r=r.mul(u).add(o(p))}else r=(r=r.mul(a)).add(o(p))}return r.unsigned=t,r}function s(t){return t instanceof e?t:"number"==typeof t?o(t):"string"==typeof t?d(t):r(t.low,t.high,t.unsigned)}e.fromString=d,e.fromValue=s;var m=65536,p=m*m,u=p*p,f=u/2,y=a(1<<24),c=a(0);e.ZERO=c;var h=a(0,!0);e.UZERO=h;var g=a(1);e.ONE=g;var _=a(1,!0);e.UONE=_;var v=a(-1);e.NEG_ONE=v;var b=r(-1,2147483647,!1);e.MAX_VALUE=b;var w=r(-1,-1,!0);e.MAX_UNSIGNED_VALUE=w;var T=r(0,-2147483648,!1);e.MIN_VALUE=T;var E=e.prototype;return E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},E.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(T)){var t=o(e),n=this.div(t),i=n.mul(t).sub(this);return n.toString(e)+i.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var a=o(l(e,6),this.unsigned),r=this,d="";;){var s=r.div(a),m=(r.sub(s.mul(a)).toInt()>>>0).toString(e);if((r=s).isZero())return m+d;for(;m.length<6;)m="0"+m;d=""+m+d}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},E.isZero=function(){return 0===this.high&&0===this.low},E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return 1==(1&this.low)},E.isEven=function(){return 0==(1&this.low)},E.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},E.eq=E.equals,E.notEquals=function(e){return!this.eq(e)},E.neq=E.notEquals,E.lessThan=function(e){return this.comp(e)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(e){return this.comp(e)<=0},E.lte=E.lessThanOrEqual,E.greaterThan=function(e){return this.comp(e)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(e){return this.comp(e)>=0},E.gte=E.greaterThanOrEqual,E.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),i=e.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(g)},E.neg=E.negate,E.add=function(e){t(e)||(e=s(e));var n=this.high>>>16,i=65535&this.high,a=this.low>>>16,o=65535&this.low,l=e.high>>>16,d=65535&e.high,m=e.low>>>16,p=0,u=0,f=0,y=0;return f+=(y+=o+(65535&e.low))>>>16,u+=(f+=a+m)>>>16,p+=(u+=i+d)>>>16,p+=n+l,r((f&=65535)<<16|(y&=65535),(p&=65535)<<16|(u&=65535),this.unsigned)},E.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},E.sub=E.subtract,E.multiply=function(e){if(this.isZero())return c;if(t(e)||(e=s(e)),e.isZero())return c;if(this.eq(T))return e.isOdd()?T:c;if(e.eq(T))return this.isOdd()?T:c;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return o(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,a=this.low>>>16,l=65535&this.low,d=e.high>>>16,m=65535&e.high,p=e.low>>>16,u=65535&e.low,f=0,h=0,g=0,_=0;return g+=(_+=l*u)>>>16,h+=(g+=a*u)>>>16,g&=65535,h+=(g+=l*p)>>>16,f+=(h+=i*u)>>>16,h&=65535,f+=(h+=a*p)>>>16,h&=65535,f+=(h+=l*m)>>>16,f+=n*u+i*p+a*m+l*d,r((g&=65535)<<16|(_&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(e){if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?h:c;var n,i,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return h;if(e.gt(this.shru(1)))return _;a=h}else{if(this.eq(T))return e.eq(g)||e.eq(v)?T:e.eq(T)?g:(n=this.shr(1).div(e).shl(1)).eq(c)?e.isNegative()?g:v:(i=this.sub(e.mul(n)),a=n.add(i.div(e)));if(e.eq(T))return this.unsigned?h:c;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=c}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var r=Math.ceil(Math.log(n)/Math.LN2),d=r<=48?1:l(2,r-48),m=o(n),p=m.mul(e);p.isNegative()||p.gt(i);)p=(m=o(n-=d,this.unsigned)).mul(e);m.isZero()&&(m=g),a=a.add(m),i=i.sub(p)}return a},E.div=E.divide,E.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},E.mod=E.modulo,E.not=function(){return r(~this.low,~this.high,this.unsigned)},E.and=function(e){return t(e)||(e=s(e)),r(this.low&e.low,this.high&e.high,this.unsigned)},E.or=function(e){return t(e)||(e=s(e)),r(this.low|e.low,this.high|e.high,this.unsigned)},E.xor=function(e){return t(e)||(e=s(e)),r(this.low^e.low,this.high^e.high,this.unsigned)},E.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?r(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):r(0,this.low<<e-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?r(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):r(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),0==(e&=63))return this;var n=this.high;return e<32?r(this.low>>>e|n<<32-e,n>>>e,this.unsigned):r(32===e?n:n>>>e-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.toSigned=function(){return this.unsigned?r(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:r(this.low,this.high,!0)},E.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},E.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},e})?i.apply(t,a):i)||(e.exports=o)},function(e,t){},function(e,t,n){"use strict";var i,a=n(2),o=n(24),r=n(25),l=n(26),d=n(6),s=-2,m=258,p=262,u=103,f=113,y=666;function c(e,t){return e.msg=d[t],t}function h(e){return(e<<1)-(e>4?9:0)}function g(e){for(var t=e.length;--t>=0;)e[t]=0}function _(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(a.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function T(e,t){var n,i,a=e.max_chain_length,o=e.strstart,r=e.prev_length,l=e.nice_match,d=e.strstart>e.w_size-p?e.strstart-(e.w_size-p):0,s=e.window,u=e.w_mask,f=e.prev,y=e.strstart+m,c=s[o+r-1],h=s[o+r];e.prev_length>=e.good_match&&(a>>=2),l>e.lookahead&&(l=e.lookahead);do{if(s[(n=t)+r]===h&&s[n+r-1]===c&&s[n]===s[o]&&s[++n]===s[o+1]){o+=2,n++;do{}while(s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&s[++o]===s[++n]&&o<y);if(i=m-(y-o),o=y-m,i>r){if(e.match_start=t,r=i,i>=l)break;c=s[o+r-1],h=s[o+r]}}}while((t=f[t&u])>d&&0!=--a);return r<=e.lookahead?r:e.lookahead}function E(e){var t,n,i,o,d,s,m,u,f,y,c=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-p)){a.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=c?i-c:0}while(--n);t=n=c;do{i=e.prev[--t],e.prev[t]=i>=c?i-c:0}while(--n);o+=c}if(0===e.strm.avail_in)break;if(s=e.strm,m=e.window,u=e.strstart+e.lookahead,f=o,y=void 0,(y=s.avail_in)>f&&(y=f),n=0===y?0:(s.avail_in-=y,a.arraySet(m,s.input,s.next_in,y,u),1===s.state.wrap?s.adler=r(s.adler,m,y,u):2===s.state.wrap&&(s.adler=l(s.adler,m,y,u)),s.next_in+=y,s.total_in+=y,y),e.lookahead+=n,e.lookahead+e.insert>=3)for(d=e.strstart-e.insert,e.ins_h=e.window[d],e.ins_h=(e.ins_h<<e.hash_shift^e.window[d+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[d+3-1])&e.hash_mask,e.prev[d&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=d,d++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<p&&0!==e.strm.avail_in)}function I(e,t){for(var n,i;;){if(e.lookahead<p){if(E(e),e.lookahead<p&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-p&&(e.match_length=T(e,n)),e.match_length>=3)if(i=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function S(e,t){for(var n,i,a;;){if(e.lookahead<p){if(E(e),e.lookahead<p&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-p&&(e.match_length=T(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,i=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,i&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function k(e,t,n,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=a}function A(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(1146),this.dyn_dtree=new a.Buf16(122),this.bl_tree=new a.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(16),this.heap=new a.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function P(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):c(e,s)}function C(e){var t,n=P(e);return 0===n&&((t=e.state).window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function x(e,t,n,i,o,r){if(!e)return s;var l=1;if(-1===t&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),o<1||o>9||8!==n||i<8||i>15||t<0||t>9||r<0||r>4)return c(e,s);8===i&&(i=9);var d=new A;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=o+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+3-1)/3),d.window=new a.Buf8(2*d.w_size),d.head=new a.Buf16(d.hash_size),d.prev=new a.Buf16(d.w_size),d.lit_bufsize=1<<o+6,d.pending_buf_size=4*d.lit_bufsize,d.pending_buf=new a.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=r,d.method=n,C(e)}i=[new k(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-p&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new k(4,4,8,4,I),new k(4,5,16,8,I),new k(4,6,32,32,I),new k(4,4,16,16,S),new k(8,16,32,32,S),new k(8,16,128,128,S),new k(8,32,128,256,S),new k(32,128,258,1024,S),new k(32,258,258,4096,S)],t.deflateInit=function(e,t){return x(e,t,8,15,8,0)},t.deflateInit2=x,t.deflateReset=C,t.deflateResetKeep=P,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?s:(e.state.gzhead=t,0):s},t.deflate=function(e,t){var n,a,r,d;if(!e||!e.state||t>5||t<0)return e?c(e,s):s;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===y&&4!==t)return c(e,0===e.avail_out?-5:s);if(a.strm=e,n=a.last_flush,a.last_flush=t,42===a.status)if(2===a.wrap)e.adler=0,b(a,31),b(a,139),b(a,8),a.gzhead?(b(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),b(a,255&a.gzhead.time),b(a,a.gzhead.time>>8&255),b(a,a.gzhead.time>>16&255),b(a,a.gzhead.time>>24&255),b(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),b(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(b(a,255&a.gzhead.extra.length),b(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=l(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(b(a,0),b(a,0),b(a,0),b(a,0),b(a,0),b(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),b(a,3),a.status=f);else{var p=8+(a.w_bits-8<<4)<<8;p|=(a.strategy>=2||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(p|=32),p+=31-p%31,a.status=f,w(a,p),0!==a.strstart&&(w(a,e.adler>>>16),w(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(r=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),_(e),r=a.pending,a.pending!==a.pending_buf_size));)b(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),_(e),r=a.pending,a.pending===a.pending_buf_size)){d=1;break}d=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,b(a,d)}while(0!==d);a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),0===d&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),_(e),r=a.pending,a.pending===a.pending_buf_size)){d=1;break}d=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,b(a,d)}while(0!==d);a.gzhead.hcrc&&a.pending>r&&(e.adler=l(e.adler,a.pending_buf,a.pending-r,r)),0===d&&(a.status=u)}else a.status=u;if(a.status===u&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&_(e),a.pending+2<=a.pending_buf_size&&(b(a,255&e.adler),b(a,e.adler>>8&255),e.adler=0,a.status=f)):a.status=f),0!==a.pending){if(_(e),0===e.avail_out)return a.last_flush=-1,0}else if(0===e.avail_in&&h(t)<=h(n)&&4!==t)return c(e,-5);if(a.status===y&&0!==e.avail_in)return c(e,-5);if(0!==e.avail_in||0!==a.lookahead||0!==t&&a.status!==y){var T=2===a.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(a,t):3===a.strategy?function(e,t){for(var n,i,a,r,l=e.window;;){if(e.lookahead<=m){if(E(e),e.lookahead<=m&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=l[a=e.strstart-1])===l[++a]&&i===l[++a]&&i===l[++a]){r=e.strstart+m;do{}while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&a<r);e.match_length=m-(r-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(a,t):i[a.level].func(a,t);if(3!==T&&4!==T||(a.status=y),1===T||3===T)return 0===e.avail_out&&(a.last_flush=-1),0;if(2===T&&(1===t?o._tr_align(a):5!==t&&(o._tr_stored_block(a,0,0,!1),3===t&&(g(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),_(e),0===e.avail_out))return a.last_flush=-1,0}return 4!==t?0:a.wrap<=0?1:(2===a.wrap?(b(a,255&e.adler),b(a,e.adler>>8&255),b(a,e.adler>>16&255),b(a,e.adler>>24&255),b(a,255&e.total_in),b(a,e.total_in>>8&255),b(a,e.total_in>>16&255),b(a,e.total_in>>24&255)):(w(a,e.adler>>>16),w(a,65535&e.adler)),_(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==u&&t!==f&&t!==y?c(e,s):(e.state=null,t===f?c(e,-3):0):s},t.deflateSetDictionary=function(e,t){var n,i,o,l,d,m,p,u,f=t.length;if(!e||!e.state)return s;if(2===(l=(n=e.state).wrap)||1===l&&42!==n.status||n.lookahead)return s;for(1===l&&(e.adler=r(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===l&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new a.Buf8(n.w_size),a.arraySet(u,t,f-n.w_size,n.w_size,0),t=u,f=n.w_size),d=e.avail_in,m=e.next_in,p=e.input,e.avail_in=f,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){i=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--o);n.strstart=i,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=m,e.input=p,e.avail_in=d,n.wrap=l,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var i=n(2);function a(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,r=286,l=30,d=15,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],m=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);a(f);var y=new Array(60);a(y);var c=new Array(512);a(c);var h=new Array(256);a(h);var g=new Array(29);a(g);var _,v,b,w=new Array(l);function T(e,t,n,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?c[e]:c[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function A(e,t,n){k(e,n[2*t],n[2*t+1])}function P(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function C(e,t,n){var i,a,o=new Array(16),r=0;for(i=1;i<=d;i++)o[i]=r=r+n[i-1]<<1;for(a=0;a<=t;a++){var l=e[2*a+1];0!==l&&(e[2*a]=P(o[l]++,l))}}function x(e){var t;for(t=0;t<r;t++)e.dyn_ltree[2*t]=0;for(t=0;t<l;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,n,i){var a=2*t,o=2*n;return e[a]<e[o]||e[a]===e[o]&&i[t]<=i[n]}function U(e,t,n){for(var i=e.heap[n],a=n<<1;a<=e.heap_len&&(a<e.heap_len&&R(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!R(t,i,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=i}function B(e,t,n){var i,a,r,l,d=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*d]<<8|e.pending_buf[e.d_buf+2*d+1],a=e.pending_buf[e.l_buf+d],d++,0===i?A(e,a,t):(A(e,(r=h[a])+o+1,t),0!==(l=s[r])&&k(e,a-=g[r],l),A(e,r=I(--i),n),0!==(l=m[r])&&k(e,i-=w[r],l))}while(d<e.last_lit);A(e,256,t)}function M(e,t){var n,i,a,o=t.dyn_tree,r=t.stat_desc.static_tree,l=t.stat_desc.has_stree,s=t.stat_desc.elems,m=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<s;n++)0!==o[2*n]?(e.heap[++e.heap_len]=m=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(a=e.heap[++e.heap_len]=m<2?++m:0)]=1,e.depth[a]=0,e.opt_len--,l&&(e.static_len-=r[2*a+1]);for(t.max_code=m,n=e.heap_len>>1;n>=1;n--)U(e,o,n);a=s;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],U(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*a]=o[2*n]+o[2*i],e.depth[a]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=a,e.heap[1]=a++,U(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,a,o,r,l,s=t.dyn_tree,m=t.max_code,p=t.stat_desc.static_tree,u=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,y=t.stat_desc.extra_base,c=t.stat_desc.max_length,h=0;for(o=0;o<=d;o++)e.bl_count[o]=0;for(s[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=s[2*s[2*(i=e.heap[n])+1]+1]+1)>c&&(o=c,h++),s[2*i+1]=o,i>m||(e.bl_count[o]++,r=0,i>=y&&(r=f[i-y]),l=s[2*i],e.opt_len+=l*(o+r),u&&(e.static_len+=l*(p[2*i+1]+r)));if(0!==h){do{for(o=c-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(o=c;0!==o;o--)for(i=e.bl_count[o];0!==i;)(a=e.heap[--n])>m||(s[2*a+1]!==o&&(e.opt_len+=(o-s[2*a+1])*s[2*a],s[2*a+1]=o),i--)}}(e,t),C(o,m,e.bl_count)}function N(e,t,n){var i,a,o=-1,r=t[1],l=0,d=7,s=4;for(0===r&&(d=138,s=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)a=r,r=t[2*(i+1)+1],++l<d&&a===r||(l<s?e.bl_tree[2*a]+=l:0!==a?(a!==o&&e.bl_tree[2*a]++,e.bl_tree[32]++):l<=10?e.bl_tree[34]++:e.bl_tree[36]++,l=0,o=a,0===r?(d=138,s=3):a===r?(d=6,s=3):(d=7,s=4))}function F(e,t,n){var i,a,o=-1,r=t[1],l=0,d=7,s=4;for(0===r&&(d=138,s=3),i=0;i<=n;i++)if(a=r,r=t[2*(i+1)+1],!(++l<d&&a===r)){if(l<s)do{A(e,a,e.bl_tree)}while(0!=--l);else 0!==a?(a!==o&&(A(e,a,e.bl_tree),l--),A(e,16,e.bl_tree),k(e,l-3,2)):l<=10?(A(e,17,e.bl_tree),k(e,l-3,3)):(A(e,18,e.bl_tree),k(e,l-11,7));l=0,o=a,0===r?(d=138,s=3):a===r?(d=6,s=3):(d=7,s=4)}}a(w);var D=!1;function O(e,t,n,a){k(e,0+(a?1:0),3),function(e,t,n,a){L(e),a&&(S(e,n),S(e,~n)),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){D||(!function(){var e,t,n,i,a,o=new Array(16);for(n=0,i=0;i<28;i++)for(g[i]=n,e=0;e<1<<s[i];e++)h[n++]=i;for(h[n-1]=i,a=0,i=0;i<16;i++)for(w[i]=a,e=0;e<1<<m[i];e++)c[a++]=i;for(a>>=7;i<l;i++)for(w[i]=a<<7,e=0;e<1<<m[i]-7;e++)c[256+a++]=i;for(t=0;t<=d;t++)o[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,o[8]++;for(;e<=255;)f[2*e+1]=9,e++,o[9]++;for(;e<=279;)f[2*e+1]=7,e++,o[7]++;for(;e<=287;)f[2*e+1]=8,e++,o[8]++;for(C(f,287,o),e=0;e<l;e++)y[2*e+1]=5,y[2*e]=P(e,5);_=new T(f,s,257,r,d),v=new T(y,m,0,l,d),b=new T(new Array(0),p,0,19,7)}(),D=!0),e.l_desc=new E(e.dyn_ltree,_),e.d_desc=new E(e.dyn_dtree,v),e.bl_desc=new E(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,x(e)},t._tr_stored_block=O,t._tr_flush_block=function(e,t,n,i){var a,r,l=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),l=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(r=e.static_len+3+7>>>3)<=a&&(a=r)):a=r=n+5,n+4<=a&&-1!==t?O(e,t,n,i):4===e.strategy||r===a?(k(e,2+(i?1:0),3),B(e,f,y)):(k(e,4+(i?1:0),3),function(e,t,n,i){var a;for(k(e,t-257,5),k(e,n-1,5),k(e,i-4,4),a=0;a<i;a++)k(e,e.bl_tree[2*u[a]+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),B(e,e.dyn_ltree,e.dyn_dtree)),x(e),i&&L(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+o+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),A(e,256,f),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n,i){for(var a=65535&e|0,o=e>>>16&65535|0,r=0;0!==n;){n-=r=n>2e3?2e3:n;do{o=o+(a=a+t[i++]|0)|0}while(--r);a%=65521,o%=65521}return a|o<<16|0}},function(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,a){var o=i,r=a+n;e^=-1;for(var l=a;l<r;l++)e=e>>>8^o[255&(e^t[l])];return-1^e}},function(e,t,n){"use strict";var i=n(2),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var r=new i.Buf8(256),l=0;l<256;l++)r[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function d(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}r[254]=r[254]=1,t.string2buf=function(e){var t,n,a,o,r,l=e.length,d=0;for(o=0;o<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<l&&56320==(64512&(a=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(a-56320),o++),d+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(d),r=0,o=0;r<d;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<l&&56320==(64512&(a=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(a-56320),o++),n<128?t[r++]=n:n<2048?(t[r++]=192|n>>>6,t[r++]=128|63&n):n<65536?(t[r++]=224|n>>>12,t[r++]=128|n>>>6&63,t[r++]=128|63&n):(t[r++]=240|n>>>18,t[r++]=128|n>>>12&63,t[r++]=128|n>>>6&63,t[r++]=128|63&n);return t},t.buf2binstring=function(e){return d(e,e.length)},t.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,a=t.length;n<a;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,i,a,o,l=t||e.length,s=new Array(2*l);for(i=0,n=0;n<l;)if((a=e[n++])<128)s[i++]=a;else if((o=r[a])>4)s[i++]=65533,n+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&n<l;)a=a<<6|63&e[n++],o--;o>1?s[i++]=65533:a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|1023&a)}return d(s,i)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+r[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";n.r(t);var i=n(1),a=n(7),o=n.n(a),r={},l=["hash","href","pathname","search","protocol","port","host","hostname","origin"].reduce((function(e,t){return e[t]={enumerable:!0,configurable:!0,get:function(){return window.location[t]}},e}),{});Object.defineProperties(r,l);var d=r;function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){m(e,t,n[t])}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=["navigationStart","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],u=["first-paint","first-contentful-paint"];function f(){if(!window.performance)return null;var e=performance.timing;return(e.loadEventEnd||Number(new Date))-e.navigationStart}function y(e){return"number"==typeof e&&Boolean(e)}function c(e){return e.replace(/([A-Z])/g,(function(e){return"_"+e.toLowerCase()})).replace(/-/g,"_")}function h(e){if(!e)return null;var t=e.timing,n={};if(p.forEach((function(e){y(t[e])&&(n[c(e)]=t[e]-t.navigationStart)})),"function"==typeof e.getEntriesByType){var i=e.getEntriesByType("paint").reduce((function(e,t){return e[t.name]=t.startTime,e}),{});u.forEach((function(e){y(i[e])&&(n[c(e)]=Math.round(i[e]))}))}return n}var g=n(8),_=n.n(g),v=n(9),b=n.n(v),w=navigator.userAgent,T={UA:w,Mobile:/Mobile/.test(w),Android:/Android/.test(w),Zhihu:/Zhihu|osee2unifiedRelease|Futureve/.test(w),ZhihuHybrid:/ZhihuHybrid/.test(w),Bot:/ZhihuExternalHit|Baiduspider|Googlebot|yodaobot|Sogou web spider|Sogou inst spider|bingbot|360spider|sosospider|YisouSpider|DuckDuckBot|HTTP_Request2|Readability|Slackbot|Instapaper|pocket/.test(w)},E=["protocol","host","hostname","port","pathname","search","hash","href"],I=document.createElement("a");var S=function(e){return I.href=e,E.reduce((function(e,t){return e[t]=I[t],e}),{})};function k(e){var t=e.split(".").slice(-2);return(t.length>1?".":"")+t.join(".")}function A(){try{return _.a.apply(void 0,arguments)}catch(e){}}var P="_zap";function C(){var e,t=A(P);(e=d.pathname).split("").forEach((function(t,n){if("/"===t&&n>0){var i=e.slice(0,n);A(P,null,{path:i})}}));var n=A(P);if(!n){n=t||b.a.v4();var i=k(d.hostname);A(P,n,{maxage:63072e6,domain:i,path:"/"})}return n}function x(){var e,t=A("d_c0");if(t)return(e=t,e.replace(/^"|"$/g,"")).split("|")[0]}function L(){if(document.referrer&&k(S(document.referrer).hostname)!==k(d.hostname))return{source:"Web",view:{url:document.referrer}}}function R(e){return{id:{client_id:T.Zhihu&&x()||C()},client:{product:"Zhihu",platform:T.Mobile?"MobileWeb":"DesktopWeb",user_agent:T.UA,is_in_app:T.Zhihu},launch:e?void 0:L()}}function U(){return{device:{screen:screen.width+"x"+screen.height}}}var B=function(){function e(e,t,n){void 0===n&&(n=!1),this.key=e,this.getStorage=t||function(){return window.localStorage},this.cache_={},this.forceRead_=n,this.reread()}var t=e.prototype;return t.reread=function(){var e;try{e=JSON.parse(this.getStorage().getItem(this.key))}catch(e){}this.cache_=e||this.cache_},t.sync_=function(){try{return this.getStorage().setItem(this.key,JSON.stringify(this.cache_))}catch(e){}},t.get=function(e){return this.forceRead_&&this.reread(),this.cache_[e]},t.set=function(e,t){this.cache_[e]=t,this.sync_()},t.remove=function(e){delete this.cache_[e],this.sync_()},t.clear=function(){this.cache_={};try{return this.getStorage().removeItem(this.key)}catch(e){}},e}(),M=function(){return Math.ceil(1e4*Math.random())},N="lastEvent",F="referrerEvent",D="incrementId",O=function(){function e(e){this.shared=new B("zap:SharedSession",(function(){return window.localStorage}),!0),this.storage=e||new B("zap:Session",(function(){return window.sessionStorage})),this.resetReferrer_()}var t=e.prototype;return t.resetReferrer_=function(){var e=this.shared.get(N);e&&(this.storage.set(F,e),this.storage.get(N)||this.storage.set(N,e))},t.recordEvent=function(e){this.shared.set(N,e),this.storage.set(N,e)},t.recordPage=function(e){this.storage.set("page",e),this.resetReferrer_()},t.getLastEvent=function(){return this.storage.get(N)},t.getReferrerEvent=function(){return this.storage.get(F)},t.getCurrentIncrementId=function(){var e=Number(this.shared.get(D));return e||(e=M(),this.shared.set(D,e)),e},t.getNextIncrementId=function(){var e=this.getCurrentIncrementId();return e>=1e7&&(e=M()),e+=1,this.shared.set(D,e),e},e}(),V=n(0),z=V.a.ZaLogEntry,H=function(e){return(e.za_log_entry_new||e).getLocalIncrementId()},Z=function(){function e(e,t){this.storage=e||new B("zap:"+(t||"Stash"),(function(){return window.localStorage}))}var t=e.prototype;return t.stash=function(e){e=Array.isArray(e)?e:[e];var t=this.get();Object.keys(t).length>100||(e.forEach((function(e){var n=H(e);n&&(t[n]=e.toBase64())})),this.storage.set("logEntries",t))},t.unStash=function(e){e=Array.isArray(e)?e:[e];var t=this.get();e.forEach((function(e){var n=H(e);n&&delete t[n]})),this.storage.set("logEntries",t)},t.get=function(){return this.storage.get("logEntries")||{}},t.pop=function(){var e=this.get();return this.clear(),Object.keys(e).reduce((function(t,n){return t.push(z.decode64(e[n])),t}),[])},t.clear=function(){this.storage.remove("logEntries")},e}(),Y=n(4),j=n(14),W=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===q}(e)}(e)};var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function G(e,t){return!1!==t.clone&&t.isMergeableObject(e)?K((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Q(e,t,n){return e.concat(t).map((function(e){return G(e,n)}))}function K(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Q,n.isMergeableObject=n.isMergeableObject||W;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var i={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){i[t]=G(e[t],n)})),Object.keys(t).forEach((function(a){n.isMergeableObject(t[a])&&e[a]?i[a]=K(e[a],t[a],n):i[a]=G(t[a],n)})),i}(e,t,n):G(t,n)}K.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return K(e,n,t)}),{})};var $=K,J={arrayMerge:function(e,t){return t}},X=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $.all(t.filter((function(e){return null!=e})),J)},ee=function(e){return/^\w+:\/\//.test(e)?e:location.origin+e},te=function(e){void 0===e&&(e={});var t=(e.link||{}).url;return t?X(e,{link:{url:ee(t)}}):e};function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){ie(e,t,n[t])}))}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e){void 0===e&&(e={});var t={base:(e=ne({useProto3:!0},e)).useProto3?X(R(e.useProto3),{client:U()}):R(e.useProto3),extra:e.useProto3?null:U(),userId:null,memberHashId:null,userType:null,orgStatus:null,responseId:null,product:null,pageProfile:null,apiHost:e.useProto3?"https://zhihu-web-analytics.zhihu.com/api/v3inv2/za":"https://zhihu-web-analytics.zhihu.com/api/v2/za",compress:!0,enableLog:!1,onBeforeSend:function(){return!0}},n=V.a.ZaLogEntry,a={};try{window.localStorage&&"1"===window.localStorage.getItem("zap:logenabled")&&(a.enableLog=!0),window.localStorage&&window.localStorage.getItem("zap:apihost")&&(a.apiHost=window.localStorage.getItem("zap:apihost"))}catch(e){}var r=e;y();var l=j.a,m=new O,p=new Z(null,e.useProto3?"Stashed":"Stash"),u=p.pop();function y(e){void 0===e&&(e={});var n,o=e,l=o.base,d=o.extra,s=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(o,["base","extra"]);(r=X(t,r,s,l?{base:Object(i.decamelizeKeys)(l)}:{},d?{extra:Object(i.decamelizeKeys)(d)}:{},a)).userId&&Object.assign(r.base.id,{user_id:r.userId}),r.memberHashId&&Object.assign(r.base.id,{member_hash_id:r.memberHashId}),r.userType&&Object.assign(r.base.id,{user_type:r.userType}),r.orgStatus&&Object.assign(r.base.id,{org_status:r.orgStatus}),r.responseId&&Object.assign(r.base.id,{response_id:r.responseId}),r.product&&Object.assign(r.base.client,{product:r.product}),r.experiment&&(r=X(r,{base:{experiment:{feature:(n=r.experiment,n&&"string"==typeof n?n.split(",").map((function(e){var t=e.split(":");return{name:t[0],value:t[1]}})):n)}}})),r.pageProfile&&(r=X(r,{extra:{page:{page_profile:r.pageProfile}}}))}function c(){var e=new Date;return{client_timestamp:String(e.getTime()),client_timezone:e.toTimeString().slice(12,17)}}function g(t,n){if(r.enableLog&&window.console){var i;n=e.useProto3?n.za_log_entry_new:n;for(var a=e.useProto3?"lightgreen":"green",o=arguments.length,l=new Array(o>2?o-2:0),d=2;d<o;d++)l[d-2]=arguments[d];(i=console).log.apply(i,["%c[za:%s]","color: "+a,t,{log:n,json:n.toRaw()}].concat(l.filter((function(e){return e&&Object.keys(e).length}))))}}var _,v,b=function(e){Array.isArray(e)&&e.length&&Object(Y.b)("/logs/batch",e,(function(){return p.unStash(e)}),{apiHost:r.apiHost,compress:r.compress})},w=(_=[],v=o()((function(){_.length&&(b(_),_=[])}),500),function(e){!1===r.onBeforeSend(e)||T.Bot||!0!==Object(Y.a)(e)&&(_.push(e),p.stash(e),v())});function E(e){return{view:e,last_event:m.getLastEvent(),referrer_event:m.getReferrerEvent(),browser_referrer:document.referrer}}function I(e,t,i){return new n({log_version:V.b,log_type:e,local_increment_id:m.getNextIncrementId(),base:X(r.base,{time:c()}),detail:t,extra:te(X(r.extra,i))})}function S(e,t,a){return t=Object(i.decamelizeKeys)(ne({},t)),a=Object(i.decamelizeKeys)(ne({},a)),t.url||(t.url=d.href),t.referrer_url||(t.referrer_url=document.referrer||null),new n({log_version:V.b,log_type:"Proto3",za_log_entry_new:{log_type:e,log_version:V.b,local_increment_id:m.getNextIncrementId(),base:X(r.base,{time:c()}),detail:{view:t},extra:te(X(r.extra,a))}})}function k(){return r}var A={trackPageShow:function(e,t){void 0===e&&(e={});var n=S("Show",X(e,{element_location:{type:"Page"}}),t);u&&u.length&&(b(u),u=null),w(n),g("trackPageShow",n,e,t)},trackShow:function(e,t){void 0===e&&(e={});var n=S("Show",e,t);w(n),g("trackShow",n,e,t)},trackEvent:function(e,t){void 0===e&&(e={});var n=S("Event",e,t);w(n),g("trackEvent",n,e,t)}};e.useProto3?Object.assign(this,{proto:V.a,SUPPORTED:l,config:y,getOptions:k,location:d},A):Object.assign(this,{proto:V.a,SUPPORTED:l,config:y,getOptions:k,location:d,trackPageShow:function(e,t){void 0===e&&(e={}),e.url||(e.url=d.href);var n=I("PageShow",E(e),t);u&&u.length&&(b(u),u=null),w(n),m.recordPage(e),g("trackPageShow",n,e)},trackCardShow:function(e,t){void 0===e&&(e={}),e.url||(e.url=d.href);var n=I("CardShow",E(e),t);w(n),g("trackCardShow",n,e)},trackEvent:function(e,t){void 0===e&&(e={}),e.url||(e.url=d.href);var n=I("Event",E(e),t);w(n),m.recordEvent(e),g("trackEvent",n,e)},trackMonitor:function(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),t.monitor){var i,a,o;e.url||(e.url=d.href),t.monitor.statusCode&&(t.monitor=(i=t.monitor,{type:o=i.type||"Page",request:{remote:[{url:(a=i.url||d.href,"/"===a[0]&&(a=d.protocol+"//"+d.hostname+a),a),latency:i.loadTime||f(),type:"Http",status:{code:i.statusCode}}]},web_performance:"Page"===o?s({},h(window.performance),i.webPerformance||{}):null}));var r=new n(I("Monitor",E(e),t));w(r),g("trackMonitor",r,e)}}})}n.d(t,"Client",(function(){return ae}))}])})); |